app-misc/ddcutil: Fix compile error with -O3 cflag
authorJonathan Scruggs <j.scruggs@gmail.com>
Thu, 21 Sep 2017 17:24:42 +0000 (18:24 +0100)
committerDavid Seifert <soap@gentoo.org>
Sat, 23 Sep 2017 08:37:28 +0000 (10:37 +0200)
DDCUtil doesn't compile with the -O3 cflag, so replace it with -O2

Closes: https://github.com/gentoo/gentoo/pull/5758

app-misc/ddcutil/ddcutil-0.8.4.ebuild

index 703177064be234b6ed152ec291e97097f136655c..5942efa23a3e1208aa01b03fec80b7036d3eb522 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit autotools linux-info udev user
+inherit autotools flag-o-matic linux-info udev user
 
 DESCRIPTION="Program for querying and changing monitor settings"
 HOMEPAGE="http://www.ddcutil.com/"
@@ -53,6 +53,9 @@ src_prepare() {
 }
 
 src_configure() {
+       # Bug 607818.
+       replace-flags -O3 -O2
+
        # Python API is still very experimental.
        local myeconfargs=(
                $(use_enable usb-monitor usb)