From 37dc364aaf751a14ff8c7e74e6bae59128c558df Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 11 Jul 2025 14:19:58 +0200 Subject: Avoid warning on constant redefinition for python module --- build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build b/build index 6ece431..0a968db 100755 --- a/build +++ b/build @@ -119,6 +119,7 @@ parsesanitize() { # Build flags CFLAGS="-std=c11 -fPIC -D_POSIX_C_SOURCE=199309L -pthread" +PYCFLAGS="-std=c11 -fPIC -pthread" [ "$ARCH" = "AVX2" ] && CFLAGS="$CFLAGS -mavx2" WFLAGS="-pedantic -Wall -Wextra -Wno-unused-parameter -Wno-unused-function" OFLAGS="$OPTIMIZE" @@ -261,7 +262,7 @@ build_python() { exit 1 fi build_nissy || exit 1 - run $CC $CFLAGS $WFLAGS $PYTHON3_INCLUDES $(odflags) -shared \ + run $CC $PYCFLAGS $WFLAGS $PYTHON3_INCLUDES $(odflags) -shared \ -o nissy_python_module.so nissy.o python/nissy_module.c } -- cgit v1.3