void-packages/common/environment/configure/build-pie.sh

6 lines
187 B
Bash

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