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: 30e32d9ed4
Fixes: 39ba3e6214
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-04-23 15:38:53 +01:00
parent ac807d6187
commit 4439bf758d
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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