osx makefile libc++ change for c++11

This commit is contained in:
pierow 2018-08-05 23:02:45 -04:00
parent dc6ccd8b73
commit 8d5de70969
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ ifeq ($(OS),Darwin)
SDKROOT ?= $(SDK_DIR)/MacOSX10.8.sdk SDKROOT ?= $(SDK_DIR)/MacOSX10.8.sdk
ARCH_FLAGS ?= -arch i386 -m32 -march=prescott -gdwarf-2 -g2 -Wno-typedef-redefinition -momit-leaf-frame-pointer -mtune=core2 ARCH_FLAGS ?= -arch i386 -m32 -march=prescott -gdwarf-2 -g2 -Wno-typedef-redefinition -momit-leaf-frame-pointer -mtune=core2
CPP_LIB=-lstdc++ -lpthread CPP_LIB=-stdlib=libc++ -lpthread
ifeq ($(origin AR), default) ifeq ($(origin AR), default)
AR = libtool -static -o AR = libtool -static -o

View file

@ -31,7 +31,7 @@ UTIL_INCLUDEDIRS = -I../ -I../util
TEXTREP_INCLUDEDIRS=.. TEXTREP_INCLUDEDIRS=..
ifeq ($(OS),Darwin) ifeq ($(OS),Darwin)
LDFLAGS=-lm -lcurl -lstdc++ -L. libparticleMP.a LDFLAGS=-lm -lcurl -stdlib=libc++ -L. libparticleMP.a
else else
LDFLAGS=-lm -lcurl -lstdc++ -L. libparticleMP.a LDFLAGS=-lm -lcurl -lstdc++ -L. libparticleMP.a
endif endif