mirror of
https://github.com/ENSL/NS.git
synced 2024-11-22 12:41:33 +00:00
change to c++11
This commit is contained in:
parent
8937e29f55
commit
b753f19949
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ ELF-GC-DYNSTR=./elf-gc-dynstr
|
|||
|
||||
ifeq ($(OS),Linux)
|
||||
CC="gcc -m32"
|
||||
CPLUS="g++ -m32 -std=c++14"
|
||||
CPLUS="g++ -m32 -std=c++11"
|
||||
CPP_LIB:=-L$(shell g++ -m32 -print-file-name=libstdc++.so | xargs dirname) -lstdc++ -ldl -lpthread
|
||||
endif
|
||||
|
||||
|
@ -61,7 +61,7 @@ ifeq ($(OS),Darwin)
|
|||
CC ="$(COMPILER_BIN_DIR)/clang -Qunused-arguments -isysroot $(SDKROOT) -mmacosx-version-min=10.5 -fasm-blocks -I$(SDKROOT)/usr/include/malloc $(ARCH_FLAGS)"
|
||||
endif
|
||||
ifeq ($(origin CPLUS), default)
|
||||
CPLUS ="$(COMPILER_BIN_DIR)/clang++ -std=c++14 -stdlib=libc++ -Qunused-arguments -isysroot $(SDKROOT) -mmacosx-version-min=10.5 -fasm-blocks -I$(SDKROOT)/usr/include/malloc $(ARCH_FLAGS)"
|
||||
CPLUS ="$(COMPILER_BIN_DIR)/clang++ -std=c++11 -stdlib=libc++ -Qunused-arguments -isysroot $(SDKROOT) -mmacosx-version-min=10.5 -fasm-blocks -I$(SDKROOT)/usr/include/malloc $(ARCH_FLAGS)"
|
||||
endif
|
||||
LINK ?= $(CPLUS)
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue