summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2020-06-08 20:52:43 +0200
committerFabian Groffen <grobian@gentoo.org>2020-06-08 20:52:43 +0200
commitf94eaa324adb7c42d34f785cacf2f20b46445fda (patch)
tree4c06b4e585a8d2034a8f66835eea92a94aa5d5bd /eclass
parentprofiles/prefix/darwin/macos: force USE=tinfo into masked (diff)
downloadgentoo-f94eaa324adb7c42d34f785cacf2f20b46445fda.tar.gz
gentoo-f94eaa324adb7c42d34f785cacf2f20b46445fda.tar.bz2
gentoo-f94eaa324adb7c42d34f785cacf2f20b46445fda.zip
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/usr-ldscript.eclass1
1 files changed, 1 insertions, 0 deletions
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