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 targets=debug,hayes,template
cppflags_force=-I ../../include cppflags_force=-I ../../include
cppflags= cppflags=
cflags_force=-W `pkg-config --cflags glib-2.0` cflags_force=`pkg-config --cflags glib-2.0` -fPIC
cflags=-Wall -g -O2 -pedantic -fPIC cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs glib-2.0` ldflags_force=`pkg-config --libs glib-2.0`
includes=hayes.h includes=hayes.h
dist=Makefile,hayes/command.h,hayes/quirks.h,osmocom.c 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 targets=blacklist,debug,engineering,gprs,gps,n900,openmoko,oss,panel,password,profiles,smscrypt,systray,template,ussd,video
cppflags_force=-I ../../include cppflags_force=-I ../../include
cppflags= cppflags=
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0` cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
cflags=-Wall -g -O2 -pedantic -fPIC cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --cflags libSystem gtk+-2.0` ldflags_force=`pkg-config --cflags libSystem gtk+-2.0`
#cflags_force=-W `pkg-config --cflags libSystem gtk+-3.0` #cflags_force=`pkg-config --cflags libSystem gtk+-3.0` -fPIC
#cflags=-Wall -g -O2 -pedantic -fPIC #cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
#ldflags_force=`pkg-config --cflags libSystem gtk+-3.0` #ldflags_force=`pkg-config --cflags libSystem gtk+-3.0`
dist=Makefile dist=Makefile

View File

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

View File

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

View File

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