aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-03-06 21:50:02 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-03-06 21:50:02 +0100
commit6d4f8d4dbcdfa1e069ccc58859b3ef831fa503b3 (patch)
tree51c1c47aa5fcf4a57997b814b83e57b9f95ab789
parentdd57b41cfdff7b9a834ec17ae1575617acfcae2f (diff)
downloadvis-6d4f8d4dbcdfa1e069ccc58859b3ef831fa503b3.tar.gz
vis-6d4f8d4dbcdfa1e069ccc58859b3ef831fa503b3.tar.xz
build: remove hardening compiler flags for now
They do not seem to be supported on all platforms (e.g. FreeBSD). Users who know what they are doing can still provide them via the regular $CFLAGS mechanism. Eventually these should be tested by a handwritten configure script and added to config.mk iff they are supported by the toolchain.
-rw-r--r--config.mk9
1 files changed, 0 insertions, 9 deletions
diff --git a/config.mk b/config.mk
index f083a99..bdc1702 100644
--- a/config.mk
+++ b/config.mk
@@ -66,12 +66,3 @@ DEBUG_CFLAGS_VIS = ${CFLAGS_VIS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -pedantic -
CC ?= cc
STRIP ?= strip
-
-# Hardening
-ifeq (${CC},gcc)
- CFLAGS += -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2
- LDFLAGS += -z now -z relro -pie
-else ifeq (${CC},clang)
- CFLAGS += -fPIE -fstack-protector-all -D_FORTIFY_SOURCE=2
- LDFLAGS += -z now -z relro -pie
-endif