More portable build as PIE

This commit is contained in:
Pierre Pronchery 2016-05-12 01:26:07 +02:00
parent 3b474bbd3e
commit 3590e7dd24
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ targets=camera
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 -Wl,-z,relro -Wl,-z,now
ldflags=-pie -Wl,-z,relro -Wl,-z,now
#for Gtk+ 3
#cflags_force=`pkg-config --cflags libDesktop gtk+-x11-3.0`
#ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl

View File

@ -2,7 +2,7 @@ targets=gallery
cflags_force=`pkg-config --cflags gtk+-2.0`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags_force=`pkg-config --libs glib-2.0`
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
ldflags=-pie -Wl,-z,relro -Wl,-z,now
#for Gtk+ 3
#cflags_force=`pkg-config --cflags gtk+-3.0`
dist=Makefile