More portable build as PIE

This commit is contained in:
Pierre Pronchery 2016-05-12 01:11:51 +02:00
parent e1cb5c0a84
commit fc5881ae19
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ cppflags=
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
ldflags=-pie
dist=Makefile,callbacks.h,modem.h,phone.h
[phone]

View File

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

View File

@ -3,7 +3,7 @@ cppflags_force=-I ../include
cppflags=
cflags_force=
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-pie
ldflags=-pie
dist=Makefile,common.c
[engineering]