m4/gst-args.m4: when building with gcov, reset CFLAGS and friends to O0

Original commit message from CVS:
* m4/gst-args.m4:
when building with gcov, reset CFLAGS and friends to O0
parent 2cd1cf86
2006-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
* m4/gst-args.m4:
when building with gcov, reset CFLAGS and friends to O0
2006-07-02 Thomas Vander Stichele <thomas at apestaart dot org>
* m4/gst-args.m4:
......
......@@ -108,6 +108,19 @@ AC_DEFUN([GST_ARG_GCOV],
GST_GCOV_ENABLED=yes
AC_DEFINE_UNQUOTED(GST_GCOV_ENABLED, 1,
[Defined if gcov is enabled to force a rebuild due to config.h changing])
dnl if gcov is used, we do not want default -O2 CFLAGS
if test "x$GST_GCOV_ENABLED" = "xyes"
then
CFLAGS="-O0"
AC_SUBST(CFLAGS)
CXXFLAGS="-O0"
AC_SUBST(CXXFLAGS)
FFLAGS="-O0"
AC_SUBST(FFLAGS)
CCASFLAGS="-O0"
AC_SUBST(CCASFLAGS)
AC_MSG_NOTICE([gcov enabled, setting CFLAGS and friends to $CFLAGS])
fi
fi
AM_CONDITIONAL(GST_GCOV_ENABLED, test x$enable_gcov = xyes)
])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment