[PATCH v2] test/conf.do: Only use c99 if CC is undefined
Export this patch
Gentoo has host-architecture symlinks like c99 disabled for some Q&A tests
to make sure cross-compiling works.
---
test/conf.do | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/conf.do b/test/conf.do
index a4b28a9..5c5ce7f 100644
--- a/test/conf.do
+++ b/test/conf.do
@@ -9,6 +9,6 @@ OBJ="$COMMOBJ $AMD64OBJ $ARM64OBJ $RV64OBJ"
SRCALL=$(echo $OBJ | sed 's/\.o/\.c/g')
-CFLAGS="$CPPFLAGS -Wall -Wextra -std=c99 -g -Wpedantic"
+CFLAGS="$CPPFLAGS -Wall -Wextra -g -Wpedantic"
-CC=c99
+CC="$CC -std=c99"
--
2.39.1
Thanks!
~Autumn