diff options
author | Fabian Groffen <grobian@gentoo.org> | 2024-07-25 08:24:15 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2024-07-25 08:24:15 +0200 |
commit | 4abb9bae4adcc38f480b435dfa01a88f676e0c03 (patch) | |
tree | cdcd868e25cdc37efb7e393267583cdbdefed040 | |
parent | eclass/toolchain: avoid emitting pie arguments when unset (diff) | |
download | prefix-4abb9bae4adcc38f480b435dfa01a88f676e0c03.tar.gz prefix-4abb9bae4adcc38f480b435dfa01a88f676e0c03.tar.bz2 prefix-4abb9bae4adcc38f480b435dfa01a88f676e0c03.zip |
scripts/bootstrap-prefix: disable USE=pie for Solaris bootstrap
Host compiler doesn't like -pie in the workload it has to do during
bootstrap, so go through lengths to disable it.
(Why can't we just override masks/forces from base?)
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-x | scripts/bootstrap-prefix.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 11ad8eb8e4..eb89fa4847 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -2032,6 +2032,13 @@ bootstrap_stage2() { # unless we only build the buildtool, bug #603012 echo "dev-build/cmake -server" >> "${ROOT}"/tmp/etc/portage/package.use + if [[ ${CHOST} == *-solaris* ]] ; then + # avoid complexities with the host toolchain + sed -i -e '/^sys-devel\/gcc pie$/d' \ + "${PORTDIR}"/profiles/base/package.use.force + echo "sys-devel/gcc -pie" >> "${ROOT}"/tmp/etc/portage/package.use + fi + emerge_pkgs --nodeps "${pkgs[@]}" || return 1 # Debian multiarch supported by RAP needs ld to support sysroot. |