From f3dced826b626399ffc626970171b01a122e1fa1 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 12 Feb 2018 10:43:47 +0100 Subject: 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() { -- cgit v1.2.3-65-gdbad