sys-fs/fuse-common: filter lto from LDFLAGS as it's unsupported
authorTim Harder <radhermit@gentoo.org>
Mon, 19 Mar 2018 14:28:04 +0000 (10:28 -0400)
committerTim Harder <radhermit@gentoo.org>
Mon, 19 Mar 2018 14:33:50 +0000 (10:33 -0400)
Closes: https://bugs.gentoo.org/650874

sys-fs/fuse-common/fuse-common-3.2.1.ebuild

index 8c95a00239d3cdedec482480f88532d2189d19ff..e2dc774e41a632d9fb5e3161df721ac75bdd4f04 100644 (file)
@@ -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