Prechádzať zdrojové kódy

Fix taking into account existing CXXFLAGS

Samuel Thibault 10 rokov pred
rodič
commit
4962066839
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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 "