VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-17 16:32:44 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-17 16:32:44 +0100
commit22c93dd64c7fd74fd917ed165bf8c29858ae29b9 (patch)
treebd017d380b0a8ee6afd094303f30429c24a5aa48
parentb7f6270c0d480318e307d3e2631fc686529776a3 (diff)
downloadVeraCrypt-22c93dd64c7fd74fd917ed165bf8c29858ae29b9.tar.gz
VeraCrypt-22c93dd64c7fd74fd917ed165bf8c29858ae29b9.zip
Linux/macOS: make binary symbols visible in crash report.
-rw-r--r--src/Makefile5
1 files changed, 4 insertions, 1 deletions
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)