Build executables with -fPIE
This commit is contained in:
parent
da158cce70
commit
854a42ab96
|
@ -1,7 +1,7 @@
|
||||||
targets=installer
|
targets=installer
|
||||||
#cppflags=-DEMBEDDED
|
#cppflags=-DEMBEDDED
|
||||||
cflags_force=-W `pkg-config --cflags libDesktop`
|
cflags_force=`pkg-config --cflags libDesktop`
|
||||||
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
|
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||||
ldflags_force=`pkg-config --libs libDesktop`
|
ldflags_force=`pkg-config --libs libDesktop`
|
||||||
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
||||||
dist=Makefile,installer.h
|
dist=Makefile,installer.h
|
||||||
|
|
Loading…
Reference in New Issue
Block a user