commit: f3dced826b626399ffc626970171b01a122e1fa1 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> AuthorDate: Mon Feb 12 09:43:47 2018 +0000 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> CommitDate: Mon Feb 12 09:43:47 2018 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f3dced82
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. scripts/bootstrap-prefix.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 0b30448fc9..3ef6e06e35 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() {