More portable build as PIE
This commit is contained in:
parent
3b474bbd3e
commit
3590e7dd24
|
@ -2,7 +2,7 @@ targets=camera
|
||||||
cflags_force=`pkg-config --cflags libDesktop`
|
cflags_force=`pkg-config --cflags libDesktop`
|
||||||
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
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 -Wl,-z,relro -Wl,-z,now
|
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
||||||
#for Gtk+ 3
|
#for Gtk+ 3
|
||||||
#cflags_force=`pkg-config --cflags libDesktop gtk+-x11-3.0`
|
#cflags_force=`pkg-config --cflags libDesktop gtk+-x11-3.0`
|
||||||
#ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
|
#ldflags_force=`pkg-config --libs libDesktop gtk+-x11-3.0` -lintl
|
||||||
|
|
|
@ -2,7 +2,7 @@ targets=gallery
|
||||||
cflags_force=`pkg-config --cflags gtk+-2.0`
|
cflags_force=`pkg-config --cflags gtk+-2.0`
|
||||||
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
ldflags_force=`pkg-config --libs glib-2.0`
|
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
|
#for Gtk+ 3
|
||||||
#cflags_force=`pkg-config --cflags gtk+-3.0`
|
#cflags_force=`pkg-config --cflags gtk+-3.0`
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
Loading…
Reference in New Issue
Block a user