vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 79a06464076b0fad4dc65bde8cf524854464097f parent 4490be48af30bdf3c76dddbf4a4e5d92875b0ebb Author: Marc André Tanner <mat@brain-dump.org> Date: Sat, 17 Jan 2015 09:27:42 +0100 Merge branch 'hardening' of https://github.com/jvoisin/vis Diffstat:
| M | config.mk | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/config.mk b/config.mk @@ -33,3 +33,12 @@ DEBUG_CFLAGS = ${CFLAGS} -UNDEBUG -O0 -g -ggdb -Wall -Wextra -Wno-missing-field- 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