sys-libs/efivar: add workaround for GCC_SPECS
authorMike Gilbert <floppym@gentoo.org>
Sat, 18 Feb 2017 15:07:54 +0000 (10:07 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sat, 18 Feb 2017 15:08:09 +0000 (10:08 -0500)
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

index 3dbf6c4f5c679456df0a3d11494b63fe01f1ee80..10cdb3688a7fa4d09c3efb8789cb7468bae97197 100644 (file)
@@ -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
 }