ifeq ($(COMP),gcc)
comp=gcc
CXX=g++
- CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow
+ CXXFLAGS += -pedantic -Wextra -Wshadow
ifneq ($(UNAME),Darwin)
LDFLAGS += -Wl,--no-as-needed
- else
- LDFLAGS += -Wl
endif
endif
ifeq ($(COMP),clang)
comp=clang
CXX=clang++
- CXXFLAGS += -pedantic -Wno-long-long -Wextra -Wshadow
+ CXXFLAGS += -pedantic -Wextra -Wshadow
ifeq ($(UNAME),Darwin)
CXXFLAGS += -std=c++0x -stdlib=libc++
DEPENDFLAGS += -std=c++0x -stdlib=libc++
LDFLAGS += -arch $(arch) -mmacosx-version-min=10.9
endif
+### Travis CI script uses COMPILER to overwrite CXX
+ifdef COMPILER
+ CXX=$(COMPILER)
+endif
+
### On mingw use Windows threads, otherwise POSIX
ifneq ($(comp),mingw)
# On Android Bionic's C library comes with its own pthread implementation bundled in