dev-db/redis: fix build w/ clang

When using "-std=c99" while compiling C++, g++ only issues a warning:

> cc1plus: warning: command-line option '-std=c99' is valid for C/ObjC but not for C++

However, clang++ reports an error:

> error: invalid argument '-std=c99' not allowed with 'C++

Therefore, remove "-std=c99" for deps/fast_float/Makefile as well, otherwise the build fails with:

> clang: error: no such file or directory: '../deps/fast_float/libfast_float.a

Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43934
Closes: https://github.com/gentoo/gentoo/pull/43934
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
This commit is contained in:
Z. Liu 2025-09-25 07:08:36 +00:00 committed by Petr Vaněk
parent 16b34c5def
commit c69a91ab2f
No known key found for this signature in database
GPG Key ID: 351D91B6D7DF9E50
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ src_configure() {
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
# also, don't define ANSI/c99 for lua twice
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
sed -i -e "s:-std=c99::g" deps{,/fast_float,/linenoise}/Makefile || die
}
src_compile() {

View File

@ -94,7 +94,7 @@ src_configure() {
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
# also, don't define ANSI/c99 for lua twice
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
sed -i -e "s:-std=c99::g" deps{,/fast_float,/linenoise}/Makefile || die
}
src_compile() {