Commit 127e2fbf authored by Loren Merritt's avatar Loren Merritt

configure: --enable-debug reduces optimization to -O1


git-svn-id: svn://svn.videolan.org/x264/trunk@553 df754926-b1dd-0310-bc7b-ec298dee348c
parent dc5d530e
......@@ -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
......
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