Compile with SSP and PIE by default

This commit is contained in:
Pierre Pronchery 2015-10-19 00:03:57 +02:00
parent 5bda617a99
commit a288d05d89
3 changed files with 9 additions and 10 deletions

View File

@ -1,7 +1,7 @@
targets=libDesktop
cppflags_force=-I ../include
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
cflags=-Wall -g -O2 -fPIC -pedantic -fstack-protector
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
dist=Makefile

View File

@ -1,9 +1,8 @@
targets=widget
cppflags_force=-I ../include
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
cflags=-Wall -g -O2 -pedantic -fstack-protector
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
ldflags=$(OBJDIR)../src/libDesktop.a
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a
dist=Makefile
[widget]

View File

@ -1,9 +1,9 @@
targets=widget
cppflags_force=-I ../include
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
cflags=-Wall -g -O2 -pedantic -fstack-protector -fPIE
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
ldflags=-L $(OBJDIR)../src -lDesktop -Wl,-pie
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop
ldflags=-Wl,-pie
dist=Makefile
[widget]