gcc11: fix ASLR, enable for x86 secondary arch

There are some new binaries that need ASLR enabled, otherwise we get an
out of memory error.

Other than that, it works fine, so we may as well enable it.
This commit is contained in:
Adrien Destugues
2021-10-31 13:59:28 +01:00
parent 8c048bc521
commit 4397c26605

View File

@@ -14,7 +14,7 @@ SOURCE_DIR="gcc-$gccVersion"
PATCHES="gcc-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"
SECONDARY_ARCHITECTURES="x86"
libatomicSoVersion="1"
libatomicLibVersion="1.2.0"
@@ -382,7 +382,7 @@ INSTALL()
addattr SYS:ENV DISABLE_ASLR=1 $f
fi
done
for f in cc1 cc1plus collect2 f951 lto1; do
for f in cc1 cc1obj cc1plus collect2 f951 g++-mapper-server lto1 lto-wrapper ; do
addattr SYS:ENV DISABLE_ASLR=1 \
$gccLibDir/$f
done