summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-02-12 10:43:47 +0100
committerFabian Groffen <grobian@gentoo.org>2018-02-12 10:43:47 +0100
commitf3dced826b626399ffc626970171b01a122e1fa1 (patch)
treecddef1306bd7c7a43878e96e609a48bb8457d2b8
parentscripts/bootstrap-prefix: avoid pod2man failures in bootstrap_gnu (diff)
downloadprefix-f3dced826b626399ffc626970171b01a122e1fa1.zip
prefix-f3dced826b626399ffc626970171b01a122e1fa1.tar.gz
prefix-f3dced826b626399ffc626970171b01a122e1fa1.tar.bz2
scripts/bootstrap-prefix: avoid sending -rpath onto the linker on Darwin
During the bootstrap we cannot rely on the linker being new enough to understand -rpath.
-rwxr-xr-xscripts/bootstrap-prefix.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 0b30448..3ef6e06 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1579,7 +1579,9 @@ bootstrap_stage3() {
configure_toolchain || return 1
export CONFIG_SHELL="${ROOT}"/tmp/bin/bash
export CPPFLAGS="-isystem ${ROOT}/usr/include"
- export LDFLAGS="-L${ROOT}/usr/$(get_libdir) -Wl,-rpath=${ROOT}/usr/$(get_libdir)"
+ export LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
+ [[ ${CHOST} == *-darwin* ]] || \
+ LDFLAGS+=" -Wl,-rpath=${ROOT}/usr/$(get_libdir)"
unset CC CXX
emerge_pkgs() {