diff --git a/tests/run.in b/tests/run.in index 8aedf320e..b7ae3b7ae 100755 --- a/tests/run.in +++ b/tests/run.in @@ -48,6 +48,11 @@ test -z "$1" && PYTHONPATH=$pypath DYLD_LIBRARY_PATH=$modpath exec $PREFIXCMD @PYTHON@ srcdir="@srcdir@" +# Reset CFLAGS, because some tests call the compiler, and we do not +# want to inherit parameters likes -std=c11 -fvisibility=hidden +CFLAGS= +export CFLAGS + case $1 in */*) dir=${1%/*}