From: Mike Gilbert Date: Sat, 18 Feb 2017 15:07:54 +0000 (-0500) Subject: sys-libs/efivar: add workaround for GCC_SPECS X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a052fd61ac2f9a50128ab32a76daae6e95274802;p=gentoo.git 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 --- diff --git a/sys-libs/efivar/efivar-31.ebuild b/sys-libs/efivar/efivar-31.ebuild index 3dbf6c4f5c67..10cdb3688a7f 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 }