Explorar o código

Fix taking into account existing CXXFLAGS

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
4962066839
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -1430,11 +1430,11 @@ AC_ARG_ENABLE(spinlock_check, [AS_HELP_STRING([--enable-spinlock-check], [enable
 if test x$enable_debug = xyes; then
 	AC_DEFINE(STARPU_DEBUG, [1], [enable debugging statements])
 	CFLAGS="$CFLAGS -O0"
-	CXXFLAGS="$CFLAGS -O0"
+	CXXFLAGS="$CXXFLAGS -O0"
 	enable_spinlock_check=yes
 else
 	CFLAGS="-O3 $CFLAGS"
-	CXXFLAGS="-O3 $CFLAGS"
+	CXXFLAGS="-O3 $CXXFLAGS"
 fi
 CFLAGS+=" -gdwarf-2 -g3 "
 CXXFLAGS+=" -gdwarf-2 -g3 "