doc/examples: add -O2 in CFLAGS.
[ffmpeg.git] / doc / examples / Makefile
index 9bb68ae..992d10e 100644 (file)
@@ -6,8 +6,9 @@ FFMPEG_LIBS=    libavdevice                        \
                 libswscale                         \
                 libavutil                          \
 
-CFLAGS+=-Wall $(shell pkg-config  --cflags $(FFMPEG_LIBS))
-LDLIBS+=$(shell pkg-config --libs $(FFMPEG_LIBS))
+CFLAGS += -Wall -O2
+CFLAGS += $(shell pkg-config --cflags $(FFMPEG_LIBS))
+LDLIBS += $(shell pkg-config --libs $(FFMPEG_LIBS))
 
 EXAMPLES=       decoding_encoding                  \
                 filtering_video                    \