[x264-devel] [PATCH] don't optimize for debug mode

Limin Wang lance.lmwang at gmail.com
Wed Jul 18 04:18:15 CEST 2007


Hi,

When I use gdb to debug the code, I'll get some unexpected result.
Can we turn off the optimization for the debug mode? 


Thanks,
Limin
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 667)
+++ configure	(working copy)
@@ -382,7 +382,7 @@
 fi
 
 if [ "$debug" = "yes" ]; then
-    CFLAGS="-O1 -g $CFLAGS"
+    CFLAGS="-O0 -g $CFLAGS"
 else
     CFLAGS="-O4 -ffast-math $CFLAGS"
 fi
-------------- next part --------------
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list