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"
|
|
|
|
LDFLAGS+=" -specs=$_GCCSPECSDIR/hardened-ld"
|
2015-03-04 17:00:19 +01:00
|
|
|
fi
|