Skip to content

Commit a075ebb

Browse files
committed
scripts/bootstrap-prefix: avoid USE=cet with binutils during bootstrap
the host compiler used may not support CET, causing binutils to fail, so wait for that later when we got our own compiler Thanks hsk17 for the analysis and proposed fix. Bug: https://bugs.gentoo.org/936629 Signed-off-by: Fabian Groffen <[email protected]>
1 parent ae67723 commit a075ebb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/bootstrap-prefix.sh

+4
Original file line numberDiff line numberDiff line change
@@ -2027,6 +2027,10 @@ bootstrap_stage2() {
20272027
echo "sys-devel/gcc -pie" >> "${ROOT}"/tmp/etc/portage/package.use
20282028
fi
20292029

2030+
# don't use CET, we don't know if the host compiler supports it
2031+
echo "sys-devel/binutils -cet" >> \
2032+
"${ROOT}"/tmp/etc/portage/profile/package.use.force
2033+
20302034
emerge_pkgs --nodeps "${pkgs[@]}" || return 1
20312035

20322036
# Debian multiarch supported by RAP needs ld to support sysroot.

0 commit comments

Comments
 (0)