From a052fd61ac2f9a50128ab32a76daae6e95274802 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 18 Feb 2017 10:07:54 -0500 Subject: [PATCH] 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 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 } -- 2.26.2