sys-libs/glibc: mangle bad -march= only for ABI=x86
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 17 Nov 2019 10:41:08 +0000 (10:41 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 17 Nov 2019 10:42:00 +0000 (10:42 +0000)
commit525bc6c0fef5bc316812df10a93dceafdfe25e16
tree27a3ec5af3c11fe7ec5d267e5f51400f3c819dbd
parent864613c0f925cf31a09490630273e0781eba7103
sys-libs/glibc: mangle bad -march= only for ABI=x86

Normally setup_target_flags() attempts to guard against
too conservative (or missing) -march= value by chacking
if sync primitives can be compiled. If it can't be compiled
glibc assumes -march= value to be too low.

Unfortunately, test always runs against 32-bit ABI without
checking if current ABI is actually 32-bit. This causes
the test mis-fire on USE=-multilib ARCH=amd64 systems.

Sweep workaround under ABI=x86 case.

Reported-by: Klaus Kusche
Closes: https://bugs.gentoo.org/700232
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-libs/glibc/glibc-2.30-r2.ebuild
sys-libs/glibc/glibc-9999.ebuild