Build executables with -fPIE

This commit is contained in:
Pierre Pronchery 2017-07-26 12:43:49 +02:00
parent da158cce70
commit 854a42ab96

View File

@ -1,7 +1,7 @@
targets=installer
#cppflags=-DEMBEDDED
cflags_force=-W `pkg-config --cflags libDesktop`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libDesktop`
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,installer.h