mirror of
https://github.com/ENSL/NS.git
synced 2025-02-01 21:51:03 +00:00
revert osx to c++98
This commit is contained in:
parent
7cf4db2810
commit
0960ad6c53
2 changed files with 5 additions and 5 deletions
|
@ -52,16 +52,16 @@ 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=-stdlib=libc++ -lpthread
|
CPP_LIB=-lstdc++ -lpthread
|
||||||
|
|
||||||
ifeq ($(origin AR), default)
|
ifeq ($(origin AR), default)
|
||||||
AR = libtool -static -o
|
AR = libtool -static -o
|
||||||
endif
|
endif
|
||||||
ifeq ($(origin CC), default)
|
ifeq ($(origin CC), default)
|
||||||
CC ="$(COMPILER_BIN_DIR)/clang -Qunused-arguments -isysroot $(SDKROOT) -mmacosx-version-min=10.7 -fasm-blocks -I$(SDKROOT)/usr/include/malloc $(ARCH_FLAGS)"
|
CC ="$(COMPILER_BIN_DIR)/clang -Qunused-arguments -isysroot $(SDKROOT) -mmacosx-version-min=10.5 -fasm-blocks -I$(SDKROOT)/usr/include/malloc $(ARCH_FLAGS)"
|
||||||
endif
|
endif
|
||||||
ifeq ($(origin CPLUS), default)
|
ifeq ($(origin CPLUS), default)
|
||||||
CPLUS ="$(COMPILER_BIN_DIR)/clang++ -std=c++11 -stdlib=libc++ -Qunused-arguments -isysroot $(SDKROOT) -mmacosx-version-min=10.7 -fasm-blocks -I$(SDKROOT)/usr/include/malloc $(ARCH_FLAGS)"
|
CPLUS ="$(COMPILER_BIN_DIR)/clang++ -Qunused-arguments -isysroot $(SDKROOT) -mmacosx-version-min=10.5 -fasm-blocks -I$(SDKROOT)/usr/include/malloc $(ARCH_FLAGS)"
|
||||||
endif
|
endif
|
||||||
LINK ?= $(CPLUS)
|
LINK ?= $(CPLUS)
|
||||||
endif
|
endif
|
||||||
|
@ -109,7 +109,7 @@ DEDICATED_CFLAGS="-DDEDICATED -DSWDS"
|
||||||
ifeq ($(OS),Darwin)
|
ifeq ($(OS),Darwin)
|
||||||
SHLIBEXT=dylib
|
SHLIBEXT=dylib
|
||||||
SHLIBCFLAGS=
|
SHLIBCFLAGS=
|
||||||
SHLIBLDFLAGS="-shared -gdwarf-2 -g2 -mmacosx-version-min=10.7 -DCMAKE_OSX_ARCHITECTURES=i386 -target i386-apple-darwin"
|
SHLIBLDFLAGS="-shared -gdwarf-2 -g2 -DCMAKE_OSX_ARCHITECTURES=i386 -target i386-apple-darwin"
|
||||||
else
|
else
|
||||||
SHLIBEXT=so
|
SHLIBEXT=so
|
||||||
SHLIBCFLAGS=
|
SHLIBCFLAGS=
|
||||||
|
|
|
@ -31,7 +31,7 @@ UTIL_INCLUDEDIRS = -I../ -I../util
|
||||||
TEXTREP_INCLUDEDIRS=..
|
TEXTREP_INCLUDEDIRS=..
|
||||||
|
|
||||||
ifeq ($(OS),Darwin)
|
ifeq ($(OS),Darwin)
|
||||||
LDFLAGS=-lm -lcurl -stdlib=libc++ -L. libparticleMP.a
|
LDFLAGS=-lm -lcurl -lstdc++ -L. libparticleMP.a
|
||||||
else
|
else
|
||||||
LDFLAGS=-lm -lcurl -lstdc++ -L. libparticleMP.a
|
LDFLAGS=-lm -lcurl -lstdc++ -L. libparticleMP.a
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue