summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-12-20 11:20:23 -0500
committerMike Gilbert <floppym@gentoo.org>2020-12-20 11:29:45 -0500
commit36d2f81325cd417c8540241659aec8f1a86e0e03 (patch)
tree2c32ffccdc0cb5cea29187c588b6e8170bc53ee1 /sys-apps/attr
parentsys-apps/attr: remove old (diff)
downloadgentoo-36d2f81325cd417c8540241659aec8f1a86e0e03.tar.gz
gentoo-36d2f81325cd417c8540241659aec8f1a86e0e03.tar.bz2
gentoo-36d2f81325cd417c8540241659aec8f1a86e0e03.zip
sys-apps/attr: move flags handling to src_configure
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/attr')
-rw-r--r--sys-apps/attr/attr-9999.ebuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/sys-apps/attr/attr-9999.ebuild b/sys-apps/attr/attr-9999.ebuild
index 7a00a2b560ee..6ff1fbd568ed 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