tests: reset CFLAGS

* tests/run.in: Here.  This helps when spins is installed an the tests
actually compile code; we do not want to inherit the -std=c11
-fvisibility=hidden set for compiling Spot.
This commit is contained in:
Alexandre Duret-Lutz 2016-06-14 14:39:53 +02:00
parent f46d39f852
commit ab42b2ece3

View file

@ -48,6 +48,11 @@ test -z "$1" &&
PYTHONPATH=$pypath DYLD_LIBRARY_PATH=$modpath exec $PREFIXCMD @PYTHON@ PYTHONPATH=$pypath DYLD_LIBRARY_PATH=$modpath exec $PREFIXCMD @PYTHON@
srcdir="@srcdir@" 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 case $1 in
*/*) */*)
dir=${1%/*} dir=${1%/*}