turn off optimization when profiling (ackcvs diff configure.in) because something...
authorErik Walthinsen <omega@temple-baptist.org>
Wed, 25 Apr 2001 23:56:17 +0000 (23:56 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Wed, 25 Apr 2001 23:56:17 +0000 (23:56 +0000)
Original commit message from CVS:
turn off optimization when profiling (ackcvs diff configure.in) because something segfaults if we don't

configure.in

index a35c501999bd5401095bcf807d12e7fe942f284a..9cea36dbd8ab734098c58cf8ebf399c89aff2d31 100644 (file)
@@ -730,7 +730,11 @@ dnl ##############################
 dnl # Set up the defaults cflags #
 dnl ##############################
 dnl CC="kgcc"
-CFLAGS="$CORE_CFLAGS $CFLAGS -O6 -Wall"
+if test "x$USE_PROFILING" = xyes; then
+  CFLAGS="$CORE_CFLAGS $CFLAGS -Wall"
+else
+  CFLAGS="$CORE_CFLAGS $CFLAGS -O6 -Wall"
+fi
 LIBS="$CORE_LIBS $LIBS"
 AC_SUBST(CORE_LIBS)
 AC_SUBST(CORE_CFLAGS)