1 |
commit: 433fb3ec99fbb65cd5576141f60a7cc6931d1f22 |
2 |
Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 28 16:14:59 2018 +0000 |
4 |
Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 28 16:15:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=433fb3ec |
7 |
|
8 |
net-wireless/osmo-fl2k: fix build failure |
9 |
|
10 |
works fine on gcc 6.4.0 but not 7.3.0 |
11 |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653 |
12 |
|
13 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
14 |
|
15 |
net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild | 5 ++++- |
16 |
net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild | 3 +++ |
17 |
2 files changed, 7 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild b/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild |
20 |
index a0e0eed61e3..0df5cfc8b4b 100644 |
21 |
--- a/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild |
22 |
+++ b/net-wireless/osmo-fl2k/osmo-fl2k-0.1.1.ebuild |
23 |
@@ -3,7 +3,7 @@ |
24 |
|
25 |
EAPI=6 |
26 |
|
27 |
-inherit cmake-utils linux-info udev |
28 |
+inherit cmake-utils flag-o-matic linux-info udev |
29 |
|
30 |
DESCRIPTION="turns FL2000-based USB 3.0 to VGA adapters into low cost DACs" |
31 |
|
32 |
@@ -38,6 +38,9 @@ src_configure() { |
33 |
-DLIB_INSTALL_DIR="/usr/$(get_libdir)" |
34 |
-DINSTALL_UDEV_RULES=OFF |
35 |
) |
36 |
+ #https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653 |
37 |
+ replace-flags -O0 -O2 |
38 |
+ replace-flags -Os -O2 |
39 |
cmake-utils_src_configure |
40 |
} |
41 |
|
42 |
|
43 |
diff --git a/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild b/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild |
44 |
index a0e0eed61e3..17e694cb18e 100644 |
45 |
--- a/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild |
46 |
+++ b/net-wireless/osmo-fl2k/osmo-fl2k-9999.ebuild |
47 |
@@ -38,6 +38,9 @@ src_configure() { |
48 |
-DLIB_INSTALL_DIR="/usr/$(get_libdir)" |
49 |
-DINSTALL_UDEV_RULES=OFF |
50 |
) |
51 |
+ #https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49653 |
52 |
+ replace-flags -O0 -O2 |
53 |
+ replace-flags -Os -O2 |
54 |
cmake-utils_src_configure |
55 |
} |