configure/hardening.sh: disable hardening on mipsel-musl.
This commit is contained in:
parent
4c4c82cb19
commit
5745ea5b82
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ CXXFLAGS="-fstack-protector-strong -D_FORTIFY_SOURCE=2 $CXXFLAGS"
|
||||||
# Enable as-needed and relro by default.
|
# Enable as-needed and relro by default.
|
||||||
LDFLAGS="-Wl,--as-needed -Wl,-z,relro $LDFLAGS"
|
LDFLAGS="-Wl,--as-needed -Wl,-z,relro $LDFLAGS"
|
||||||
|
|
||||||
if [ -z "$nopie" ]; then
|
if [ -z "$nopie" ] && [ "$XBPS_TARGET_ARCH" != mipsel-musl ]; then
|
||||||
_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
Reference in a new issue