summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2021-12-27 12:08:57 +0100
committerRoland Reichwein <mail@reichwein.it>2021-12-27 12:08:57 +0100
commit16fbb700ed82cf6d3aad3a9c293b0e8068840b96 (patch)
tree83e54e80a4540199d5f7cc3212470d489f819cbd /Makefile
parentfcdf5b3f2308555f5c1a5b2585ee2947855e1ca9 (diff)
Fix build on Debian and Ubuntu versions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e037bc5..a3962c1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,18 @@
PROJECTNAME=unicode
VERSION=$(shell dpkg-parsechangelog --show-field Version)
-ifeq ($(shell lsb_release -si),Debian)
+ifeq ($(shell lsb_release -is),Debian)
ONDEBIAN=yes
+DEBIANVERSION=$(shell lsb_release -rs)
else
ONDEBIAN=no
endif
# On Ubuntu 2104 and 2110, dh_strip / debugedit is broken, therefore different Non-Debian options in the following
-DISTROS=base base-i386 debian10 debian11 ubuntu2004 ubuntu2010 ubuntu2104 ubuntu2110 ubuntu2204
+DISTROS=base base-i386 debian10 debian11 ubuntu2004 ubuntu2104 ubuntu2110 ubuntu2204
+
+ifeq ($(DEBIANVERSION),10)
+CXX=g++-8
+else
ifeq ($(wildcard $(shell which clang++-13)),)
ifeq ($(wildcard $(shell which clang++-12)),)
@@ -27,6 +32,8 @@ else
CXX=clang++-13
endif
+endif
+
STANDARD=c++17
ifeq ($(CXXFLAGS),)
@@ -38,7 +45,6 @@ ifeq ($(CXX),clang++-13)
ifeq ($(ONDEBIAN),yes)
COMPILER_SUITE=clang
LIBS+=-fuse-ld=lld-13
-# boost is buggy for C++20: error: static_assert failed due to requirement 'detail::is_endian_reversible_inplace<char8_t>
STANDARD=c++20
endif
endif