VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-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)