Build with SSP and PIE by default

This commit is contained in:
Pierre Pronchery 2015-08-25 00:33:16 +02:00
parent b523e59221
commit e424edd284
5 changed files with 14 additions and 13 deletions

View File

@ -1,8 +1,8 @@
targets=debug,hayes,template
cppflags_force=-I ../../include
cppflags=
cflags_force=-W `pkg-config --cflags glib-2.0`
cflags=-Wall -g -O2 -pedantic -fPIC
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`
includes=hayes.h
dist=Makefile,hayes/command.h,hayes/quirks.h,osmocom.c

View File

@ -2,11 +2,11 @@ subdirs=16x16,24x24,32x32,48x48
targets=blacklist,debug,engineering,gprs,gps,n900,openmoko,oss,panel,password,profiles,smscrypt,systray,template,ussd,video
cppflags_force=-I ../../include
cppflags=
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
cflags=-Wall -g -O2 -pedantic -fPIC
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 --cflags libSystem gtk+-2.0`
#cflags_force=-W `pkg-config --cflags libSystem gtk+-3.0`
#cflags=-Wall -g -O2 -pedantic -fPIC
#cflags_force=`pkg-config --cflags libSystem gtk+-3.0` -fPIC
#cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
#ldflags_force=`pkg-config --cflags libSystem gtk+-3.0`
dist=Makefile

View File

@ -1,9 +1,10 @@
subdirs=modems,plugins
targets=phone,phonectl
cppflags=
cflags_force=-W `pkg-config --cflags libDesktop`
cflags=-Wall -g -O2 -pedantic
cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs libDesktop` -lintl
ldflags=-Wl,-pie
dist=Makefile,callbacks.h,modem.h,phone.h
[phone]

View File

@ -1,8 +1,7 @@
targets=hayes,modems,oss,pdu,plugins,ussd,tests.log
cppflags_force=-I ../include
cflags_force=-W
cflags=-Wall -g -O2
ldflags_force=-W
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-pie
dist=Makefile,tests.sh
[hayes]

View File

@ -1,8 +1,9 @@
targets=engineering,gprs,pdu,smscrypt
cppflags_force=-I ../include
cppflags=
cflags_force=-W
cflags=-Wall -g -O2
cflags_force=
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-pie
dist=Makefile,common.c
[engineering]