commit:     36d2f81325cd417c8540241659aec8f1a86e0e03
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 20 16:20:23 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Dec 20 16:29:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36d2f813

sys-apps/attr: move flags handling to src_configure

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-apps/attr/attr-9999.ebuild | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/sys-apps/attr/attr-9999.ebuild b/sys-apps/attr/attr-9999.ebuild
index 7a00a2b560e..6ff1fbd568e 100644
--- a/sys-apps/attr/attr-9999.ebuild
+++ b/sys-apps/attr/attr-9999.ebuild
@@ -23,11 +23,6 @@ IUSE="debug nls static-libs"
 
 BDEPEND="nls? ( sys-devel/gettext )"
 
-pkg_setup() {
-       # Remove -flto* from flags as this breaks binaries (bug #644048)
-       filter-flags -flto*
-}
-
 src_prepare() {
        default
 
@@ -40,13 +35,19 @@ src_prepare() {
        fi
 }
 
+src_configure() {
+       # Remove -flto* from flags as this breaks binaries (bug #644048)
+       filter-flags -flto*
+       append-ldflags "-Wl,--no-gc-sections" #700116
+       tc-ld-disable-gold #644048
+       multilib-minimal_src_configure
+}
+
 multilib_src_configure() {
        unset PLATFORM #184564
        export OPTIMIZER=${CFLAGS}
        export DEBUG=-DNDEBUG
 
-       tc-ld-disable-gold #644048
-
        local myeconfargs=(
                --bindir="${EPREFIX}"/bin
                --enable-shared

Reply via email to