net-wireless/osmo-fl2k: fix build failure
authorZero_Chaos <zerochaos@gentoo.org>
Thu, 28 Jun 2018 16:14:59 +0000 (12:14 -0400)
committerZero_Chaos <zerochaos@gentoo.org>
Thu, 28 Jun 2018 16:15:14 +0000 (12:15 -0400)
works fine on gcc 6.4.0 but not 7.3.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653

Package-Manager: Portage-2.3.40, Repoman-2.3.9

net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild
net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild

index a0e0eed61e39d3ef9e1e4247d580b626e3973b47..0df5cfc8b4b97bb1700295e612f3829c6222d776 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit cmake-utils linux-info udev
+inherit cmake-utils flag-o-matic linux-info udev
 
 DESCRIPTION="turns FL2000-based USB 3.0 to VGA adapters into low cost DACs"
 
@@ -38,6 +38,9 @@ src_configure() {
                -DLIB_INSTALL_DIR="/usr/$(get_libdir)"
                -DINSTALL_UDEV_RULES=OFF
        )
+       #https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653
+       replace-flags -O0 -O2
+       replace-flags -Os -O2
        cmake-utils_src_configure
 }
 
index a0e0eed61e39d3ef9e1e4247d580b626e3973b47..17e694cb18e9f16c43e1eba81df68c610f4e340f 100644 (file)
@@ -38,6 +38,9 @@ src_configure() {
                -DLIB_INSTALL_DIR="/usr/$(get_libdir)"
                -DINSTALL_UDEV_RULES=OFF
        )
+       #https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653
+       replace-flags -O0 -O2
+       replace-flags -Os -O2
        cmake-utils_src_configure
 }