From c9e2d6466e42d6b779ac9ffa7c5ee9a9c7558df8 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 3 Sep 2024 21:52:16 +0200 Subject: Moved stuff around --- configure.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'configure.sh') diff --git a/configure.sh b/configure.sh index 76d02de..e12dc06 100755 --- a/configure.sh +++ b/configure.sh @@ -16,15 +16,18 @@ detectsan() { TYPE=${TYPE-"$detected"} STD="-std=c99" -WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" +WFLAGS="-pedantic -Wall -Wextra" +# -Wstringop-overflow seems to be causing problems when combined with -O3 +# Someone else complained here: https://access.redhat.com/solutions/6755371 +WNOFLAGS="-Wno-unused-parameter -Wno-unused-function -Wno-stringop-overflow" [ "$TYPE" = "AVX2" ] && AVX="-mavx2" [ -n "$(detectsan address)" ] && ADDR="-fsanitize=address" [ -n "$(detectsan undefined)" ] && UNDEF="-fsanitize=undefined" SAN="$ADDR $UNDEF" LIBS="-lpthread" -CFLAGS="$STD $LIBS $WFLAGS $AVX -O3" -DBGFLAGS="$STD $LIBS $WFLAGS $SAN $AVX -g3 -DDEBUG" +CFLAGS="$STD $LIBS $WFLAGS $WNOFLAGS $AVX -O3" +DBGFLAGS="$STD $LIBS $WFLAGS $WNOFLAGS $SAN $AVX -g3 -DDEBUG" echo "Cube type: CUBE_$TYPE" echo "Compiler: ${CC:-cc}" -- cgit v1.3