diff options
author | Yuta Satoh <nigoro.dev@gmail.com> | 2016-01-30 16:38:35 +0900 |
---|---|---|
committer | Yuta Satoh <nigoro.dev@gmail.com> | 2016-01-30 16:38:35 +0900 |
commit | af4a98f9d64537dba6f7db310806e4393720a4b6 (patch) | |
tree | bdd10d9fc2c3005c0fff3cecb70435cf7fe57229 /sys-freebsd/freebsd-libexec | |
parent | app-emulation/wine: Check SHAs for staging compat, bug #572522 (diff) | |
download | gentoo-af4a98f9d64537dba6f7db310806e4393720a4b6.tar.gz gentoo-af4a98f9d64537dba6f7db310806e4393720a4b6.tar.bz2 gentoo-af4a98f9d64537dba6f7db310806e4393720a4b6.zip |
sys-freebsd/freebsd-libexec: Add a workaround for gcc-5.0 or later.
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573358
Diffstat (limited to 'sys-freebsd/freebsd-libexec')
-rw-r--r-- | sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild b/sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild index cf509b2be762..89c29a031b37 100644 --- a/sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild +++ b/sys-freebsd/freebsd-libexec/freebsd-libexec-10.2.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit bsdmk freebsd pam multilib multibuild multilib-build +inherit bsdmk freebsd pam multilib multibuild multilib-build toolchain-funcs DESCRIPTION="FreeBSD libexec things" SLOT="0" @@ -53,6 +53,9 @@ pkg_setup() { } src_prepare() { + # gcc-5.0 or later, Workaround for critical issue. bug 573358. + [[ "$(gcc-major-version)" -ge 5 ]] && replace-flags -O[2-9] -O1 + if [[ ! -e "${WORKDIR}/include" ]]; then ln -s /usr/include "${WORKDIR}/include" || die "Symlinking /usr/include.." fi |