From 127e2fbf0a338549b00f6a3022ce1d2bab1d2acb Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Wed, 16 Aug 2006 20:13:06 +0000 Subject: [PATCH] configure: --enable-debug reduces optimization to -O1 git-svn-id: svn://svn.videolan.org/x264/trunk@553 df754926-b1dd-0310-bc7b-ec298dee348c --- configure | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index afe3eab5..130a1c99 100755 --- a/configure +++ b/configure @@ -57,7 +57,7 @@ vis="no" shared="no" CC="${CC-gcc}" -CFLAGS="-Wall -I. -O4 -ffast-math -D__X264__" +CFLAGS="-Wall -I. -D__X264__" LDFLAGS="" HAVE_GETOPT_LONG=1 @@ -240,7 +240,6 @@ for opt do pthread="no" ;; --enable-debug) - CFLAGS="$CFLAGS -g" debug="yes" ;; --enable-gprof) @@ -339,6 +338,12 @@ if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then VFW_LDFLAGS="$VFW_LDFLAGS -s" fi +if [ "$debug" == "yes" ]; then + CFLAGS="-O1 -g $CFLAGS" +else + CFLAGS="-O4 -ffast-math $CFLAGS" +fi + if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then echo "#define fseek fseeko" >> config.h echo "#define ftell ftello" >> config.h -- 2.40.0