Build with SSP and PIE by default

This commit is contained in:
Pierre Pronchery 2015-08-24 03:33:24 +02:00
parent 4768b9e531
commit 8072bac3c1
4 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
targets=coder
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 -D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE
ldflags_force=`pkg-config --libs libDesktop` -lintl
ldflags=-Wl,-pie
dist=Makefile,callbacks.h,coder.h,project.h

View File

@ -1,6 +1,6 @@
targets=asm
cflags_force=-W
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags_force=-fPIC
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=
dist=Makefile

View File

@ -1,6 +1,6 @@
targets=ptrace
cflags_force=-W `pkg-config --cflags glib-2.0`
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
cflags_force=`pkg-config --cflags glib-2.0` -fPIC
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs glib-2.0`
ldflags=
dist=Makefile

View File

@ -1,7 +1,7 @@
subdirs=backend,debug,models
targets=debugger,gdeasm,sequel,simulator
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 -D_FORTIFY_SOURCE=2 -fstack-protector -fPIE
ldflags_force=`pkg-config --libs libDesktop`
ldflags=-Wl,-pie
dist=Makefile,debugger.h,gdeasm.h,sequel.h,simulator.h