summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-02-28 09:55:22 +0100
committerRoland Reichwein <mail@reichwein.it>2021-02-28 09:55:22 +0100
commit6eb1ecf3619f00071eadb6080e15f381f197b298 (patch)
tree128eecb30e40981f2235dbd000f74cb5f83f41e1 /common.mk
parentf4b6b3b7bb2be6ec8aa6b694d9ff39a774f01da7 (diff)
Makefile update
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/common.mk b/common.mk
index a7ee20c..746d1a6 100644
--- a/common.mk
+++ b/common.mk
@@ -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