vp-build/common/environment/configure/build-pie.sh

8 lines
235 B
Bash

_GCCSPECSDIR=${XBPS_COMMONDIR}/environment/configure/gccspecs
if [ -n "$build_pie" ]; then
CFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
CXXFLAGS+=" -specs=$_GCCSPECSDIR/hardened-cc1"
LDFLAGS+=" -specs=$_GCCSPECSDIR/hardened-ld"
fi