Fix building PIE on Linux and FreeBSD (possibly more)

This commit is contained in:
Pierre Pronchery 2016-03-06 02:41:35 +01:00
parent e09c17e030
commit b96cf7c9ec

View File

@ -1,7 +1,7 @@
targets=vncviewer
#cppflags=-DWITH_LIBVIEW
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
ldflags=-pie -Wl,-z,relro -Wl,-z,now
#for Gtk+ 2
cflags_force=`pkg-config --cflags gtk-vnc-1.0`
ldflags_force=`pkg-config --libs gtk-vnc-1.0`