mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-libs/glibc: fix CPP definition
On sparc, this might break if e.g. -mcpu is in CFLAGS. It's similar to the arm case already mentioned. Reported by Dakon: "ok, it greps for __sparc_v8 or __sparc_v9 cpp output, but it does not pass the -mcpu I have in CFLAGS, so it falls back to the compiler default which still is v7" Fixes:30e32d9ed4Fixes:39ba3e6214Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -663,7 +663,7 @@ setup_env() {
|
||||
# Some of the tests are written in C++, so we need to force our multlib abis in, bug 623548
|
||||
export CXX="${glibc__GLIBC_CXX} ${glibc__abi_CFLAGS} ${CFLAGS}"
|
||||
|
||||
export CPP="${glibc__GLIBC_CPP} ${glibc__abi_CFLAGS}"
|
||||
export CPP="${glibc__GLIBC_CPP} ${glibc__abi_CFLAGS} ${CFLAGS}"
|
||||
|
||||
if is_crosscompile; then
|
||||
# Assume worst-case bootstrap: glibc is built for the first time
|
||||
|
||||
@@ -676,7 +676,7 @@ setup_env() {
|
||||
# Some of the tests are written in C++, so we need to force our multlib abis in, bug 623548
|
||||
export CXX="${glibc__GLIBC_CXX} ${glibc__abi_CFLAGS} ${CFLAGS}"
|
||||
|
||||
export CPP="${glibc__GLIBC_CPP} ${glibc__abi_CFLAGS}"
|
||||
export CPP="${glibc__GLIBC_CPP} ${glibc__abi_CFLAGS} ${CFLAGS}"
|
||||
|
||||
if is_crosscompile; then
|
||||
# Assume worst-case bootstrap: glibc is built for the first time
|
||||
|
||||
@@ -676,7 +676,7 @@ setup_env() {
|
||||
# Some of the tests are written in C++, so we need to force our multlib abis in, bug 623548
|
||||
export CXX="${glibc__GLIBC_CXX} ${glibc__abi_CFLAGS} ${CFLAGS}"
|
||||
|
||||
export CPP="${glibc__GLIBC_CPP} ${glibc__abi_CFLAGS}"
|
||||
export CPP="${glibc__GLIBC_CPP} ${glibc__abi_CFLAGS} ${CFLAGS}"
|
||||
|
||||
if is_crosscompile; then
|
||||
# Assume worst-case bootstrap: glibc is built for the first time
|
||||
|
||||
Reference in New Issue
Block a user