diff options
author | Mike Gilbert <floppym@gentoo.org> | 2019-07-15 13:12:33 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2019-07-18 11:13:14 -0400 |
commit | c7db011db1bd61272373c32a0a5683d4b55a3d30 (patch) | |
tree | 0de8e7c43159ed41cebed142559b3e564db31280 /eclass/usr-ldscript.eclass | |
parent | toolchain-funcs.eclass: deprecate gen_usr_ldscript (diff) | |
download | gentoo-c7db011db1bd61272373c32a0a5683d4b55a3d30.tar.gz gentoo-c7db011db1bd61272373c32a0a5683d4b55a3d30.tar.bz2 gentoo-c7db011db1bd61272373c32a0a5683d4b55a3d30.zip |
usr-ldscript.eclass: add EAPI check and drop legacy code
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/usr-ldscript.eclass')
-rw-r--r-- | eclass/usr-ldscript.eclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/usr-ldscript.eclass b/eclass/usr-ldscript.eclass index 1a115ca6a88c..4d503e7d6db9 100644 --- a/eclass/usr-ldscript.eclass +++ b/eclass/usr-ldscript.eclass @@ -4,11 +4,17 @@ # @ECLASS: usr-ldscript.eclass # @MAINTAINER: # Toolchain Ninjas <toolchain@gentoo.org> +# @SUPPORTED_EAPIS: 4 5 6 7 # @BLURB: Defines the gen_usr_ldscript function. if [[ -z ${_USR_LDSCRIPT_ECLASS} ]]; then _USR_LDSCRIPT_ECLASS=1 +case ${EAPI:-0} in + 4|5|6|7) ;; + *) die "EAPI=${EAPI} is not supported" ;; +esac + inherit multilib toolchain-funcs IUSE="split-usr" @@ -29,7 +35,6 @@ IUSE="split-usr" # correctly to point to the latest version of the library present. gen_usr_ldscript() { local lib libdir=$(get_libdir) output_format="" auto=false suffix=$(get_libname) - [[ -z ${ED+set} ]] && local ED=${D%/}${EPREFIX}/ tc-is-static-only && return |