Linux/macOS: make binary symbols visible in crash report.

This commit is contained in:
Mounir IDRASSI 2024-11-17 16:32:44 +01:00
parent b7f6270c0d
commit 22c93dd64c
No known key found for this signature in database
GPG Key ID: FC1B00364B3FE937

View File

@ -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)