From 5745ea5b82a24bce6c0714964112f7286c49018f Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 27 Nov 2015 12:02:13 +0100 Subject: [PATCH] configure/hardening.sh: disable hardening on mipsel-musl. --- common/environment/configure/hardening.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/environment/configure/hardening.sh b/common/environment/configure/hardening.sh index d9d6172edf9..111ee7020b1 100644 --- a/common/environment/configure/hardening.sh +++ b/common/environment/configure/hardening.sh @@ -4,7 +4,7 @@ CXXFLAGS="-fstack-protector-strong -D_FORTIFY_SOURCE=2 $CXXFLAGS" # Enable as-needed and relro by default. 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 CFLAGS="-specs=${_GCCSPECSDIR}/hardened-cc1 $CFLAGS" CXXFLAGS="-specs=${_GCCSPECSDIR}/hardened-cc1 $CXXFLAGS"