summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-11-22 17:07:44 +0100
committerRoland Reichwein <mail@reichwein.it>2022-11-22 17:07:44 +0100
commit2a4d96188afa83110b30931559732d4fd9bacab2 (patch)
tree9513d272f2baba29d3b22b04c78ffa4bf61f58bd /Makefile
parent15b3424c72fb3af3eb47e00eeee27730e8fa0b75 (diff)
First working whiteboard
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2d14170..640a081 100755
--- a/Makefile
+++ b/Makefile
@@ -36,9 +36,15 @@ ifeq ($(CXXFLAGS),)
CXXFLAGS=-g -O2
endif
-CXXFLAGS+=-Wall -fPIE -std=c++20 -Wpedantic -gdwarf-4
+CXXFLAGS+=-Wall -fPIE -Wpedantic -gdwarf-4
LDFLAGS+=-pie
+ifeq ($(CXX),g++-9)
+CXXFLAGS+=-std=c++17
+else
+CXXFLAGS+=-std=c++20
+endif
+
ifeq ($(CXX),clang++-10)
LIBS+= \
-fuse-ld=lld-10 \