env/hardening: reenable hardening for MIPS.
I just booted a full PIE base-system successfully on my CI20 Creator. For now we set -fPIE again in C{,XX}FLAGS to fix the build in attr/acl/coreutils, etc.
This commit is contained in:
parent
2ec3075932
commit
7e117fb96d
1 changed files with 7 additions and 3 deletions
|
@ -9,12 +9,16 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
CFLAGS+=" -fno-stack-protector"
|
CFLAGS+=" -fno-stack-protector"
|
||||||
CXXFLAGS+=" -fno-stack-protector"
|
CXXFLAGS+=" -fno-stack-protector"
|
||||||
;;
|
;;
|
||||||
mips*) # PIE support broken
|
|
||||||
nopie=yes
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -z "$nopie" ]; then
|
if [ -z "$nopie" ]; then
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
mips*)
|
||||||
|
# XXX for some reason the gcc specs does not apply correctly
|
||||||
|
CFLAGS+=" -fPIE"
|
||||||
|
CXXFLAGS+=" -fPIE"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
_GCCSPECSDIR=${XBPS_COMMONDIR}/environment/configure/gccspecs
|
_GCCSPECSDIR=${XBPS_COMMONDIR}/environment/configure/gccspecs
|
||||||
CFLAGS="-specs=${_GCCSPECSDIR}/hardened-cc1 $CFLAGS"
|
CFLAGS="-specs=${_GCCSPECSDIR}/hardened-cc1 $CFLAGS"
|
||||||
CXXFLAGS="-specs=${_GCCSPECSDIR}/hardened-cc1 $CXXFLAGS"
|
CXXFLAGS="-specs=${_GCCSPECSDIR}/hardened-cc1 $CXXFLAGS"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue