1 |
commit: af4a98f9d64537dba6f7db310806e4393720a4b6 |
2 |
Author: Yuta Satoh <nigoro.dev <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 30 07:38:35 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 30 07:38:35 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af4a98f9 |
7 |
|
8 |
sys-freebsd/freebsd-libexec: Add a workaround for gcc-5.0 or later. |
9 |
|
10 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573358 |
11 |
|
12 |
sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild | 5 ++++- |
13 |
1 file changed, 4 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild b/sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild |
16 |
index cf509b2..89c29a0 100644 |
17 |
--- a/sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild |
18 |
+++ b/sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
|
21 |
EAPI=5 |
22 |
|
23 |
-inherit bsdmk freebsd pam multilib multibuild multilib-build |
24 |
+inherit bsdmk freebsd pam multilib multibuild multilib-build toolchain-funcs |
25 |
|
26 |
DESCRIPTION="FreeBSD libexec things" |
27 |
SLOT="0" |
28 |
@@ -53,6 +53,9 @@ pkg_setup() { |
29 |
} |
30 |
|
31 |
src_prepare() { |
32 |
+ # gcc-5.0 or later, Workaround for critical issue. bug 573358. |
33 |
+ [[ "$(gcc-major-version)" -ge 5 ]] && replace-flags -O[2-9] -O1 |
34 |
+ |
35 |
if [[ ! -e "${WORKDIR}/include" ]]; then |
36 |
ln -s /usr/include "${WORKDIR}/include" || die "Symlinking /usr/include.." |
37 |
fi |