diff options
author | Roland Reichwein <mail@reichwein.it> | 2022-11-05 14:41:12 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2022-11-05 14:41:12 +0100 |
commit | 54539cc210afcda25f6da12ad08c2b5fa8bd5be2 (patch) | |
tree | 2818845887e38271e315f899d4176139dd595dcf | |
parent | 4aeab7931182cb1c35bd5c52b58d71b30c32674d (diff) |
Fix build on Ubuntu
-rwxr-xr-x | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -4,7 +4,7 @@ # Environment: Debian # -DISTROS=debian10 debian11 ubuntu2004 ubuntu2204 +DISTROS=base debian10 debian11 ubuntu2004 ubuntu2204 VERSION=$(shell dpkg-parsechangelog --show-field Version) CXX=clang++-10 @@ -23,12 +23,18 @@ endif LIBS=-lfcgi -lboost_filesystem INCLUDES=-I. -CXXFLAGS=-Wall -g -O2 -fPIC -std=c++17 -Wpedantic HEADERS=file.h SOURCES=$(HEADERS:.h=.cpp) OBJECTS=$(HEADERS:.h=.o) TARGETS=whiteboard.fcgi +ifeq ($(CXXFLAGS),) +CXXFLAGS=-g -O2 +endif + +CXXFLAGS+=-Wall -fPIE -std=c++17 -Wpedantic -gdwarf-4 +LDFLAGS+=-pie + ifeq ($(CXX),clang++-10) LIBS+= \ -fuse-ld=lld-10 \ |