commit: a052fd61ac2f9a50128ab32a76daae6e95274802
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 15:07:54 2017 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 15:08:09 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a052fd61
sys-libs/efivar: add workaround for GCC_SPECS
Lars Wendler reported a link failure when using a forced as-needed
gcc profile.
This failure was caused by gcc ignoring the specs file passed on the command
line, in favor of the GCC_SPECS environment variable.
To work around this, we append the necessary specs file to the envvar.
Package-Manager: Portage-2.3.3_p56, Repoman-2.3.1_p49
sys-libs/efivar/efivar-31.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sys-libs/efivar/efivar-31.ebuild b/sys-libs/efivar/efivar-31.ebuild
index 3dbf6c4f5c..10cdb3688a 100644
--- a/sys-libs/efivar/efivar-31.ebuild
+++ b/sys-libs/efivar/efivar-31.ebuild
@@ -28,4 +28,9 @@ src_configure() {
tc-ld-disable-gold
export libdir="/usr/$(get_libdir)"
unset LIBS # Bug 562004
+
+ if [[ -n ${GCC_SPECS} ]]; then
+ # The environment overrides the command line.
+ GCC_SPECS+=":${S}/gcc.specs"
+ fi
}