From 22c93dd64c7fd74fd917ed165bf8c29858ae29b9 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 17 Nov 2024 16:32:44 +0100 Subject: Linux/macOS: make binary symbols visible in crash report. --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 849687bc..b176975e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -200,6 +200,7 @@ ifeq "$(shell uname -s)" "Linux" PLATFORM := Linux C_CXX_FLAGS += -DTC_UNIX -DTC_LINUX + LFLAGS += -rdynamic # PCSC C_CXX_FLAGS += $(shell $(PKG_CONFIG) --cflags libpcsclite) @@ -321,7 +322,7 @@ $(error Specified SDK version was not found, ensure your active developer direct CXXFLAGS += -std=c++11 C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_MACOSX -mmacosx-version-min=$(VC_OSX_TARGET) -isysroot $(VC_OSX_SDK_PATH) - LFLAGS += -mmacosx-version-min=$(VC_OSX_TARGET) -Wl,-syslibroot $(VC_OSX_SDK_PATH) + LFLAGS += -mmacosx-version-min=$(VC_OSX_TARGET) -Wl,-syslibroot $(VC_OSX_SDK_PATH) -Wl,-export_dynamic # Xcode 15 linker emits a warning "no platform load command found" when linking object files generated by yasm # To suppress this warning, we need to use -Wl,-ld_classic flag in order to use the old ld64 linker # https://mjtsai.com/blog/2024/03/15/xcode-15-no-platform-load-command-found/ @@ -414,6 +415,7 @@ ifeq "$(shell uname -s)" "FreeBSD" PLATFORM := FreeBSD PLATFORM_UNSUPPORTED := 1 C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_FREEBSD + LFLAGS += -rdynamic # PCSC C_CXX_FLAGS += $(shell $(PKG_CONFIG) --cflags libpcsclite) @@ -476,6 +478,7 @@ ifeq "$(shell uname -s)" "OpenBSD" PLATFORM := OpenBSD PLATFORM_UNSUPPORTED := 1 C_CXX_FLAGS += -DTC_UNIX -DTC_BSD -DTC_OPENBSD + LFLAGS += -rdynamic # PCSC C_CXX_FLAGS += $(shell $(PKG_CONFIG) --cflags libpcsclite) -- cgit v1.2.3