diff options
author | Roland Reichwein <mail@reichwein.it> | 2021-02-28 09:55:22 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2021-02-28 09:55:22 +0100 |
commit | 6eb1ecf3619f00071eadb6080e15f381f197b298 (patch) | |
tree | 128eecb30e40981f2235dbd000f74cb5f83f41e1 /common.mk | |
parent | f4b6b3b7bb2be6ec8aa6b694d9ff39a774f01da7 (diff) |
Makefile update
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1,5 +1,5 @@ CXX=g++-10 -#CXX=clang++-10 +#CXX=clang++-11 ifeq ($(shell which $(CXX)),) CXX=g++-8 @@ -21,6 +21,10 @@ ifeq ($(shell which $(CXX)),) CXX=g++ endif +ifeq ($(LINK_STATICALLY),1) +LDFLAGS+=-static +endif + ifeq ($(CXXFLAGS),) #CXXFLAGS=-O2 -g -DNDEBUG CXXFLAGS=-O0 -g -D_DEBUG @@ -31,15 +35,15 @@ endif CXXFLAGS+=-Wall -I. CXXFLAGS+=-pthread -ifeq ($(CXX),clang++-10) +ifeq ($(CXX),clang++-11) CXXFLAGS+=-std=c++20 #-stdlib=libc++ else CXXFLAGS+=-std=c++17 endif -ifeq ($(CXX),clang++-10) +ifeq ($(CXX),clang++-11) LIBS+= \ --fuse-ld=lld-10 \ +-fuse-ld=lld-11 \ -lstdc++ #-lc++ \ #-lc++abi |