xbps-src: make 'build_pie' the default; use 'nopie' to disable it.

Discussed with @chneukirchen.
This commit is contained in:
Juan RP 2015-11-17 16:47:19 +01:00
parent 9575860319
commit 3fdad91bf9
265 changed files with 2 additions and 266 deletions

View file

@ -1,6 +1,6 @@
_GCCSPECSDIR=${XBPS_COMMONDIR}/environment/configure/gccspecs
if [ -n "$build_pie" ]; then
if [ -z "$nopie" ]; then
CFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
CXXFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
# We pass -z relro -z now here too, because libtool drops -specs...