|
@@ -1992,18 +1992,24 @@ if test x$enable_debug = xyes; then
|
|
AC_DEFINE(STARPU_DEBUG, [1], [enable debugging statements])
|
|
AC_DEFINE(STARPU_DEBUG, [1], [enable debugging statements])
|
|
CFLAGS="$CFLAGS -O0"
|
|
CFLAGS="$CFLAGS -O0"
|
|
CXXFLAGS="$CXXFLAGS -O0"
|
|
CXXFLAGS="$CXXFLAGS -O0"
|
|
|
|
+ FFLAGS="$FFLAGS -O0"
|
|
|
|
+ FCFLAGS="$FCFLAGS -O0"
|
|
enable_spinlock_check=yes
|
|
enable_spinlock_check=yes
|
|
if test x$GCC = xyes; then
|
|
if test x$GCC = xyes; then
|
|
if test x$starpu_windows != xyes ; then
|
|
if test x$starpu_windows != xyes ; then
|
|
if test x$enable_fstack_protector_all = xyes ; then
|
|
if test x$enable_fstack_protector_all = xyes ; then
|
|
CFLAGS="$CFLAGS -fstack-protector-all"
|
|
CFLAGS="$CFLAGS -fstack-protector-all"
|
|
CXXFLAGS="$CXXFLAGS -fstack-protector-all"
|
|
CXXFLAGS="$CXXFLAGS -fstack-protector-all"
|
|
|
|
+ FFLAGS="$FFLAGS -fstack-protector-all"
|
|
|
|
+ FCFLAGS="$FCFLAGS -fstack-protector-all"
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
else
|
|
else
|
|
CFLAGS="-O3 $CFLAGS"
|
|
CFLAGS="-O3 $CFLAGS"
|
|
CXXFLAGS="-O3 $CXXFLAGS"
|
|
CXXFLAGS="-O3 $CXXFLAGS"
|
|
|
|
+ FFLAGS="-O3 $FFLAGS"
|
|
|
|
+ FCFLAGS="-O3 $FCFLAGS"
|
|
fi
|
|
fi
|
|
|
|
|
|
AC_MSG_CHECKING(whether full gdb information should be enabled)
|
|
AC_MSG_CHECKING(whether full gdb information should be enabled)
|
|
@@ -2013,10 +2019,14 @@ AC_MSG_RESULT($enable_full_gdb_information)
|
|
if test x$enable_full_gdb_information = xyes -a x$GCC = xyes; then
|
|
if test x$enable_full_gdb_information = xyes -a x$GCC = xyes; then
|
|
CFLAGS+=" -gdwarf-2 -g3"
|
|
CFLAGS+=" -gdwarf-2 -g3"
|
|
CXXFLAGS+=" -gdwarf-2 -g3"
|
|
CXXFLAGS+=" -gdwarf-2 -g3"
|
|
|
|
+ FFLAGS+=" -gdwarf-2 -g3"
|
|
|
|
+ FCFLAGS+=" -gdwarf-2 -g3"
|
|
LDFLAGS+=" -gdwarf-2 -g3"
|
|
LDFLAGS+=" -gdwarf-2 -g3"
|
|
fi
|
|
fi
|
|
CFLAGS+=" -g "
|
|
CFLAGS+=" -g "
|
|
CXXFLAGS+=" -g "
|
|
CXXFLAGS+=" -g "
|
|
|
|
+FFLAGS+=" -g "
|
|
|
|
+FCFLAGS+=" -g "
|
|
LDFLAGS+=" -g "
|
|
LDFLAGS+=" -g "
|
|
|
|
|
|
if test x$enable_spinlock_check = xyes; then
|
|
if test x$enable_spinlock_check = xyes; then
|
|
@@ -2064,6 +2074,8 @@ AM_CONDITIONAL(STARPU_COVERAGE_ENABLED, [test "x$enable_coverage" = "xyes"])
|
|
if test x$enable_coverage = xyes; then
|
|
if test x$enable_coverage = xyes; then
|
|
CFLAGS="${CFLAGS} --coverage"
|
|
CFLAGS="${CFLAGS} --coverage"
|
|
CXXFLAGS="${CXXFLAGS} --coverage"
|
|
CXXFLAGS="${CXXFLAGS} --coverage"
|
|
|
|
+ FFLAGS="${FFLAGS} --coverage"
|
|
|
|
+ FCFLAGS="${FCFLAGS} --coverage"
|
|
LDFLAGS="${LDFLAGS} --coverage"
|
|
LDFLAGS="${LDFLAGS} --coverage"
|
|
LIBS="${LIBS} -lgcov"
|
|
LIBS="${LIBS} -lgcov"
|
|
fi
|
|
fi
|