2015-03-07 20:52:28 +01:00
|
|
|
_GCCSPECSDIR=${XBPS_COMMONDIR}/environment/configure/gccspecs
|
|
|
|
|
2015-03-04 17:00:19 +01:00
|
|
|
if [ -n "$build_pie" ]; then
|
2015-03-07 20:52:28 +01:00
|
|
|
CFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
|
2015-08-13 13:50:23 +02:00
|
|
|
CXXFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
|
2015-08-17 16:53:04 +02:00
|
|
|
# We pass -z relro -z now here too, because libtool drops -specs...
|
|
|
|
LDFLAGS+=" -specs=$_GCCSPECSDIR/hardened-ld -Wl,-z,relro -Wl,-z,now"
|
2015-03-04 17:00:19 +01:00
|
|
|
fi
|