2015-03-07 19:52:28 +00:00
|
|
|
_GCCSPECSDIR=${XBPS_COMMONDIR}/environment/configure/gccspecs
|
|
|
|
|
2015-03-04 16:00:19 +00:00
|
|
|
if [ -n "$build_pie" ]; then
|
2015-03-07 19:52:28 +00:00
|
|
|
CFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
|
2015-08-13 11:50:23 +00:00
|
|
|
CXXFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
|
2015-08-17 14:53:04 +00: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 16:00:19 +00:00
|
|
|
fi
|