commit:     f94eaa324adb7c42d34f785cacf2f20b46445fda
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  8 18:52:43 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jun  8 18:52:43 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f94eaa32

eclass/usr-ldscript: make gen_usr_ldscript a noop on Prefix

Like in the old toolchain-funcs.eclass, don't do any usr-linking on
Prefix (because there is no usr-split).  In particular, this avoid doing
stuff like calling linkers with arguments they don't support and
therefore dying.

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 eclass/usr-ldscript.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/usr-ldscript.eclass b/eclass/usr-ldscript.eclass
index 7e406267b64..4ee129bda83 100644
--- a/eclass/usr-ldscript.eclass
+++ b/eclass/usr-ldscript.eclass
@@ -37,6 +37,7 @@ gen_usr_ldscript() {
        local lib libdir=$(get_libdir) output_format="" auto=false 
suffix=$(get_libname)
 
        tc-is-static-only && return
+       use prefix && return
 
        # We only care about stuffing / for the native ABI. #479448
        if [[ $(type -t multilib_is_native_abi) == "function" ]] ; then

Reply via email to