Build with RELRO by default

This commit is contained in:
Pierre Pronchery 2016-04-30 02:09:37 +02:00
parent 9e2ee3cd61
commit ec8d3c0358
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
targets=libDesktop targets=libDesktop
cppflags_force=-I ../include cppflags_force=-I ../include
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-z,relro -Wl,-z,now
#for Gtk+ 2 #for Gtk+ 2
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` ldflags_force=`pkg-config --libs libSystem gtk+-2.0`

View File

@ -1,7 +1,7 @@
targets=tests.log,widget targets=tests.log,widget
cppflags_force=-I ../include cppflags_force=-I ../include
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=-pie ldflags=-pie -Wl,-z,relro -Wl,-z,now
#for Gtk+ 2 #for Gtk+ 2
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a

View File

@ -1,7 +1,7 @@
targets=widget targets=widget
cppflags_force=-I ../include cppflags_force=-I ../include
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=-pie ldflags=-pie -Wl,-z,relro -Wl,-z,now
#for Gtk+ 2 #for Gtk+ 2
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop