mirror of
https://github.com/n64decomp/sm64.git
synced 2024-10-19 21:17:37 -04:00
Add support for FreeBSD in the Makefile for ido_recomp basing off linux
and adding -lexecinfo to linker flags
This commit is contained in:
parent
c4f437ab8a
commit
733b8314a5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue