Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit3c8aa19036086624029f314cc6f0d75b9c757171 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-07-15 18:51:20 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-07-15 18:51:20 +0200
Filese7d73c970ecad5f36232c30ca1d65d5caa66ca4d
goodwolf-3c8aa19036086624029f314cc6f0d75b9c757171.tar
goodwolf-3c8aa19036086624029f314cc6f0d75b9c757171.tar.gz
goodwolf-3c8aa19036086624029f314cc6f0d75b9c757171.zip
Parentcd0f66ed04f2604cce81dfd6ed1cce9715d376bf (diff)
Makefile: Force some cflags, bump _XOPEN_SOURCE to 700
1 files changed, 3 insertions, 2 deletions
-rw-r--r--Makefile5
diff --git a/Makefile b/Makefile
index 4349593..10bd767 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,8 @@ DATADIR ?= $(PREFIX)/share/badwolf
APPSDIR ?= $(PREFIX)/share/applications
CC ?= cc
-CFLAGS ?= -g -O2 -pie -fPIE -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -Wsign-conversion -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Werror=vla $(EXTRA_CFLAGS)
+CFLAGS ?= -g -O2 -pie -fPIE
+CFLAGS += -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -Wsign-conversion -Werror=implicit-function-declaration -Werror=implicit-int -Werror=vla $(EXTRA_CFLAGS)
DBG ?=
PKGCONFIG ?= pkg-config
MSGFMT ?= msgfmt
@@ -33,7 +34,7 @@ EXE_test = uri_test
TRANS = fr.mo pt_BR.mo tr.mo de.mo
DOCS = usr.bin.badwolf README.md KnowledgeBase.md interface.txt
-CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION_FULL)\"
+CDEPS = -DDATADIR=\"$(DATADIR)\" -DPACKAGE=\"$(PACKAGE)\" -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION_FULL)\"
CDEPS += `$(PKGCONFIG) --cflags $(DEPS)`
LIBS = `$(PKGCONFIG) --libs $(DEPS)`