@@ -2039,28 +2039,6 @@ bootstrap_stage2() {
2039
2039
emerge_pkgs --nodeps " ${pkg} " || return 1
2040
2040
done
2041
2041
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
-
2064
2042
for pkg in ${compiler_stage1} ; do
2065
2043
# <glibc-2.5 does not understand .gnu.hash, use
2066
2044
# --hash-style=both to produce also sysv hash.
0 commit comments