From: mquinson Date: Wed, 19 Aug 2009 13:58:31 +0000 (+0000) Subject: Force -O0 when the --disable-compiler-optimization flag is passed to configure; not... X-Git-Tag: SVN~1069 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fd798487ad9e31cac739a73cd02159797bf3f959 Force -O0 when the --disable-compiler-optimization flag is passed to configure; not sure what the default value is git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6606 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/acmacro/compiler-flags.m4 b/acmacro/compiler-flags.m4 index c9d6169762..f66f1b4811 100644 --- a/acmacro/compiler-flags.m4 +++ b/acmacro/compiler-flags.m4 @@ -91,6 +91,8 @@ AC_DEFUN([SG_COMPILE_FLAGS],[ if test "x$cflags_set" != "xyes" ; then CFLAGS="$optCFLAGS $CFLAGS" fi + else + CFLAGS="$CFLAGS -O0" fi if test x$lt_cv_prog_gnu_ld = xyes ; then