From 8b01b533cfeafc989137c202af61c83f63c5f531 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 21 Jun 2024 09:48:18 +0200 Subject: MacOSX: Fix compilation error in build configurations other than official release --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3