VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-06-21 09:48:18 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-06-21 09:48:18 +0200
commit8b01b533cfeafc989137c202af61c83f63c5f531 (patch)
tree66ec1c0a30a2c282bc43e39697f20f1614736ec7 /src/Makefile
parentc370d4887ce66952a8fc6691d070cc9a8a9443f0 (diff)
downloadVeraCrypt-8b01b533cfeafc989137c202af61c83f63c5f531.tar.gz
VeraCrypt-8b01b533cfeafc989137c202af61c83f63c5f531.zip
MacOSX: Fix compilation error in build configurations other than official release
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 799a8ff5..1747c637 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -315,6 +315,7 @@ ifeq "$(shell uname -s)" "Darwin"
GCC_GTEQ_430 := 1
+ 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)
#Xcode 15 linker emits a warning "no platform load command found" when linking object files generated by yasm
@@ -380,7 +381,6 @@ ifeq "$(shell uname -s)" "Darwin"
ARCH_FLAG += -arch i386
WX_CONFIGURE_FLAGS += --enable-universal_binary=i386,x86_64
else
- CXXFLAGS += -std=c++11
# Non-development build defaults to universal binary for arm64 and x86_64
ARCH_FLAG += -arch arm64
WX_CONFIGURE_FLAGS += --enable-universal_binary=arm64,x86_64