From ab42b2ece36fbd406d6e54201a073076c802c674 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 14 Jun 2016 14:39:53 +0200 Subject: [PATCH] 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. --- tests/run.in | 5 +++++ 1 file changed, 5 insertions(+) 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%/*}