summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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 \