From ebf183727b8469b7ab63ed682a2ac185c6c7f963 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 6 Nov 2019 23:21:41 +0000 Subject: [PATCH] toolchain.eclass: restore RESTRICT=strip on --- eclass/toolchain.eclass | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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() { -- 2.26.2