commit:     21b2ec200196e4f44e2d4c91814c9fab94b6cb49
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 19 14:28:04 2018 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Mon Mar 19 14:33:50 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21b2ec20

sys-fs/fuse-common: filter lto from LDFLAGS as it's unsupported

Closes: https://bugs.gentoo.org/650874

 sys-fs/fuse-common/fuse-common-3.2.1.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sys-fs/fuse-common/fuse-common-3.2.1.ebuild 
b/sys-fs/fuse-common/fuse-common-3.2.1.ebuild
index 8c95a00239d..e2dc774e41a 100644
--- a/sys-fs/fuse-common/fuse-common-3.2.1.ebuild
+++ b/sys-fs/fuse-common/fuse-common-3.2.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit meson udev
+inherit meson udev flag-o-matic
 
 DESCRIPTION="Common files for multiple slots of sys-fs/fuse"
 HOMEPAGE="https://github.com/libfuse/libfuse";
@@ -18,6 +18,13 @@ RDEPEND="!<sys-fs/fuse-2.9.7-r1:0"
 
 S=${WORKDIR}/fuse-${PV}
 
+src_prepare() {
+       default
+
+       # lto not supported yet -- https://github.com/libfuse/libfuse/issues/198
+       filter-flags -flto
+}
+
 src_install() {
        newsbin "${BUILD_DIR}"/util/mount.fuse3 mount.fuse
        doman doc/mount.fuse.8

Reply via email to