mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
16b34c5def
commit
c69a91ab2f
@ -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() {
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user