[FFmpeg-devel] [PATCH] examples/Makefile: disable -O2 optimizations

Stefano Sabatini stefasab at gmail.com
Wed Jun 26 16:16:44 CEST 2013


There is no much point in optimizing example code, and this the -O2 flag
is annoying when debugging.
---
 doc/examples/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/examples/Makefile b/doc/examples/Makefile
index c849daa..3a84de8 100644
--- a/doc/examples/Makefile
+++ b/doc/examples/Makefile
@@ -7,7 +7,7 @@ FFMPEG_LIBS=    libavdevice                        \
                 libswscale                         \
                 libavutil                          \
 
-CFLAGS += -Wall -O2 -g
+CFLAGS += -Wall -g
 CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
 LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
 
-- 
1.8.1.2



More information about the ffmpeg-devel mailing list