Add support for FreeBSD in the Makefile for ido_recomp basing off linux

and adding -lexecinfo to linker flags
This commit is contained in:
mrpotatogun 2023-09-04 14:28:53 -04:00
parent c4f437ab8a
commit 733b8314a5

View File

@ -35,6 +35,8 @@ ifeq ($(OS),Windows_NT)
DETECTED_OS := windows
else ifeq ($(UNAME_S),Linux)
DETECTED_OS := linux
else ifeq ($(UNAME_S),FreeBSD)
DETECTED_OS := freebsd
else ifeq ($(UNAME_S),Darwin)
DETECTED_OS := macos
MAKE := gmake
@ -122,6 +124,10 @@ ifeq ($(DETECTED_OS),linux)
# For traceback
$(RECOMP_ELF): LDFLAGS += -Wl,-export-dynamic
endif
ifeq ($(DETECTED_OS),freebsd)
# For traceback
$(RECOMP_ELF): LDFLAGS += -Wl,-export-dynamic -lexecinfo
endif
# Too many warnings, disable everything for now...
$(RECOMP_ELF): WARNINGS += -Wpedantic -Wno-shadow -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-implicit-fallthrough