Skip to content

Commit 7e89bde

Browse files
committed
scripts/bootstrap-prefix: drop obsolete darwin rpath workaround
This has been fixed for some time, and for sure in GCC-14 versions we use. Signed-off-by: Fabian Groffen <[email protected]>
1 parent b55238c commit 7e89bde

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

scripts/bootstrap-prefix.sh

-22
Original file line numberDiff line numberDiff line change
@@ -2039,28 +2039,6 @@ bootstrap_stage2() {
20392039
emerge_pkgs --nodeps "${pkg}" || return 1
20402040
done
20412041

2042-
# During Gentoo prefix bootstrap stage2, GCC is built with
2043-
# "--disable-bootstrap". For Darwin, it means that rather than letting
2044-
# GCC to eventually build itself using multiple passes, we're forcing
2045-
# it to build with the host LLVM/clang toolchain in a single pass.
2046-
# It's not officially supported, but practically it worked. However,
2047-
# since >=gcc-12.2.0, in order to support the new embedded rpath
2048-
# feature on Darwin, two incompatible options, "-nodefaultrpaths" and
2049-
# "-nodefaultexport" are introduced. This causes linking failures,
2050-
# since these options are only recognized by GCC and are unknown to
2051-
# LLVM/clang (hypothetically, using an older GCC possibly causes the
2052-
# same problem as well).
2053-
#
2054-
# Thus, embedded rpath should be disabled during prefix bootstrap stage2
2055-
# and passed into EXTRA_ECONF.
2056-
# https://bugs.gentoo.org/895334
2057-
if [[ ${CHOST} == *-darwin* ]] ;
2058-
then
2059-
local disable_darwin_rpath="--disable-darwin-at-rpath"
2060-
else
2061-
local disable_darwin_rpath=""
2062-
fi
2063-
20642042
for pkg in ${compiler_stage1} ; do
20652043
# <glibc-2.5 does not understand .gnu.hash, use
20662044
# --hash-style=both to produce also sysv hash.

0 commit comments

Comments
 (0)