Skip to content

Commit

Permalink
scripts/bootstrap-prefix: drop obsolete darwin rpath workaround
Browse files Browse the repository at this point in the history
This has been fixed for some time, and for sure in GCC-14 versions we
use.

Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Sep 28, 2024
1 parent b55238c commit 7e89bde
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions scripts/bootstrap-prefix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2039,28 +2039,6 @@ bootstrap_stage2() {
emerge_pkgs --nodeps "${pkg}" || return 1
done

# During Gentoo prefix bootstrap stage2, GCC is built with
# "--disable-bootstrap". For Darwin, it means that rather than letting
# GCC to eventually build itself using multiple passes, we're forcing
# it to build with the host LLVM/clang toolchain in a single pass.
# It's not officially supported, but practically it worked. However,
# since >=gcc-12.2.0, in order to support the new embedded rpath
# feature on Darwin, two incompatible options, "-nodefaultrpaths" and
# "-nodefaultexport" are introduced. This causes linking failures,
# since these options are only recognized by GCC and are unknown to
# LLVM/clang (hypothetically, using an older GCC possibly causes the
# same problem as well).
#
# Thus, embedded rpath should be disabled during prefix bootstrap stage2
# and passed into EXTRA_ECONF.
# https://bugs.gentoo.org/895334
if [[ ${CHOST} == *-darwin* ]] ;
then
local disable_darwin_rpath="--disable-darwin-at-rpath"
else
local disable_darwin_rpath=""
fi

for pkg in ${compiler_stage1} ; do
# <glibc-2.5 does not understand .gnu.hash, use
# --hash-style=both to produce also sysv hash.
Expand Down

0 comments on commit 7e89bde

Please sign in to comment.