summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2019-07-14 16:17:43 -0400
committerMike Gilbert <floppym@gentoo.org>2019-07-18 11:13:13 -0400
commitcc8063d4318a6594ac8ae94e99c2a6fe484198bd (patch)
treec94aa0be0d55497820ebc53e6db1026e72173d78 /eclass/usr-ldscript.eclass
parentusr-ldscript.eclass: copy gen_usr_ldscript from toolchain-funcs.eclass (diff)
downloadgentoo-cc8063d4318a6594ac8ae94e99c2a6fe484198bd.tar.gz
gentoo-cc8063d4318a6594ac8ae94e99c2a6fe484198bd.tar.bz2
gentoo-cc8063d4318a6594ac8ae94e99c2a6fe484198bd.zip
usr-ldscript.eclass: return early if USE=split-usr is disabled
Bug: https://bugs.gentoo.org/417451 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/usr-ldscript.eclass')
-rw-r--r--eclass/usr-ldscript.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/usr-ldscript.eclass b/eclass/usr-ldscript.eclass
index 2ad8c0901b19..1a115ca6a88c 100644
--- a/eclass/usr-ldscript.eclass
+++ b/eclass/usr-ldscript.eclass
@@ -11,6 +11,8 @@ _USR_LDSCRIPT_ECLASS=1
inherit multilib toolchain-funcs
+IUSE="split-usr"
+
# @FUNCTION: gen_usr_ldscript
# @USAGE: [-a] <list of libs to create linker scripts for>
# @DESCRIPTION:
@@ -41,7 +43,9 @@ gen_usr_ldscript() {
*-darwin*) ;;
*-android*) return 0 ;;
*linux*|*-freebsd*|*-openbsd*|*-netbsd*)
- use prefix && return 0 ;;
+ use prefix && return 0
+ use split-usr || return 0
+ ;;
*) return 0 ;;
esac