Fix building PIE on Linux and FreeBSD (possibly more)

This commit is contained in:
Pierre Pronchery 2016-03-06 00:26:15 +01:00
parent 0df131caf8
commit df21d37210
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
targets=widget
cppflags_force=-I ../include
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-pie
#for Gtk+ 2
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a

View File

@ -1,7 +1,7 @@
targets=widget
cppflags_force=-I ../include
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-pie
ldflags=-pie
#for Gtk+ 2
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop