Signed-off-by: Mike Gilbert <flop...@gentoo.org> --- eclass/usr-ldscript.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eclass/usr-ldscript.eclass b/eclass/usr-ldscript.eclass index a0fbd7d42ec4..1e631b5a34b7 100644 --- a/eclass/usr-ldscript.eclass +++ b/eclass/usr-ldscript.eclass @@ -11,6 +11,11 @@ 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" @@ -31,7 +36,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 -- 2.22.0