From: Sergei Trofimovich Date: Wed, 6 Nov 2019 23:21:41 +0000 (+0000) Subject: toolchain.eclass: restore RESTRICT=strip on --- diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 5f8fd446c619..99643eafdd0f 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -30,16 +30,6 @@ case ${EAPI:-0} in *) die "I don't speak EAPI ${EAPI}." ;; esac -tc_supports_dostrip() { - case ${EAPI:-0} in - 5*|6) return 1 ;; - 7) return 0 ;; - *) die "Update apply_patches() for ${EAPI}." ;; - esac -} - -tc_supports_dostrip || RESTRICT="strip" # cross-compilers need controlled stripping - EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure \ src_compile src_test src_install pkg_postinst pkg_postrm @@ -140,6 +130,16 @@ fi IUSE="test vanilla +nls" RESTRICT="!test? ( test )" +tc_supports_dostrip() { + case ${EAPI:-0} in + 5*|6) return 1 ;; + 7) return 0 ;; + *) die "Update apply_patches() for ${EAPI}." ;; + esac +} + +tc_supports_dostrip || RESTRICT+=" strip" # cross-compilers need controlled stripping + TC_FEATURES=() tc_has_feature() {