From 733b8314a5d27785b96a5e2532d831c46fdad5c0 Mon Sep 17 00:00:00 2001 From: mrpotatogun Date: Mon, 4 Sep 2023 14:28:53 -0400 Subject: [PATCH] Add support for FreeBSD in the Makefile for ido_recomp basing off linux and adding -lexecinfo to linker flags --- tools/ido-static-recomp/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/ido-static-recomp/Makefile b/tools/ido-static-recomp/Makefile index 69a50d16..5b2b3202 100644 --- a/tools/ido-static-recomp/Makefile +++ b/tools/ido-static-recomp/Makefile @@ -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