st

suckless terminal - with my changes
git clone https://pi.duncano.de/git/st.git
Log | Files | Refs | README | LICENSE

commit 580bb3c8356306c5fd3c874873c742fb5e71cfa9
parent c40809867a471d6cd033f1eccf905d6c618df0ae
Author: Duncaen <mail@duncano.de>
Date:   Mon, 23 Oct 2017 03:11:19 +0200

config.mk: add hardening cflags

Diffstat:
config.mk | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/config.mk b/config.mk @@ -18,8 +18,12 @@ LIBS = -L$(X11LIB) -lm -lrt -lX11 -lutil -lXft \ `pkg-config --libs fontconfig` \ `pkg-config --libs freetype2` +CFLAGS = -std=c99 -pedantic -Wall -Wvariadic-macros -Os +CFLAGS += -fstack-protector-strong -D_FORTIFY_SOURCE=2 -fpie +LDFLAGS = -z,now -pie + # flags -CPPFLAGS = -DVERSION=\"$(VERSION)\" -D_XOPEN_SOURCE=600 +CPPFLAGS = -DVERSION=\"${VERSION}\" -D_XOPEN_SOURCE=600 STCFLAGS = $(INCS) $(CPPFLAGS) $(CFLAGS) STLDFLAGS = $(LIBS) $(LDFLAGS)