summaryrefslogtreecommitdiffhomepage
path: root/common.mk
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-01 21:16:19 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-01 21:16:19 +0100
commita72cd70af957a06ae870d93314b4ed0f3625f6ee (patch)
tree9da93fc597d26ac3cec93a4518649871453a7f94 /common.mk
parent6c339d8aab380a191fe3fce7ca7dc7c09e252ebd (diff)
Adjust to Debian 11 build
Diffstat (limited to 'common.mk')
-rw-r--r--common.mk22
1 files changed, 20 insertions, 2 deletions
diff --git a/common.mk b/common.mk
index 118310f..cffe297 100644
--- a/common.mk
+++ b/common.mk
@@ -1,11 +1,23 @@
CXX=clang++-14
#CXX=g++-12
+ifeq ($(CXX),clang++-14)
+CXXTYPE=clang++
+else ifeq ($(CXX),clang++)
+CXXTYPE=clang++
+else
+CXXTYPE=g++
+endif
+
ifeq ($(shell which $(CXX)),)
CXX=clang++-13
endif
ifeq ($(shell which $(CXX)),)
+CXX=clang++-11
+endif
+
+ifeq ($(shell which $(CXX)),)
CXX=clang++-10
endif
@@ -36,13 +48,19 @@ endif
ifeq ($(CXX),clang++-10)
LIBS+=-fuse-ld=lld-10 -lstdc++
+else ifeq ($(CXX),clang++-11)
+#LIBS+=-fuse-ld=lld-11 -lc++ -lc++abi
+LLVMPROFDATA=llvm-profdata-11
+LLVMCOV=llvm-cov-11
else ifeq ($(CXX),clang++-14)
-LIBS+=-fuse-ld=lld-14 -lc++ -lc++abi
+#LIBS+=-fuse-ld=lld-14 -lc++ -lc++abi
+LLVMPROFDATA=llvm-profdata-14
+LLVMCOV=llvm-cov-14
else
LIBS+=-lstdc++ -lstdc++fs
endif
CXXFLAGS+=$(shell pkg-config --cflags qrcodegencpp Magick++ fmt sqlite3)
-LIBS+=-lfcgi -lboost_filesystem
+LIBS+=-lfcgi -lboost_filesystem -lpthread
LIBS+=-lSQLiteCpp $(shell pkg-config --libs qrcodegencpp Magick++ fmt sqlite3)