From f5394972456da2a27c998afadbff70c5237d79c4 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 31 Dec 2001 14:21:23 +0000 Subject: removing gcc optimizations that broke ffmpeg. mmx asm code does not need to be optimized anyway. CVS patchset: 1322 CVS date: 2001/12/31 14:21:23 --- src/libffmpeg/libavcodec/armv4l/Makefile.am | 4 +++- src/libffmpeg/libavcodec/i386/Makefile.am | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libffmpeg/libavcodec/armv4l/Makefile.am b/src/libffmpeg/libavcodec/armv4l/Makefile.am index 1fbda388f..49512fa17 100644 --- a/src/libffmpeg/libavcodec/armv4l/Makefile.am +++ b/src/libffmpeg/libavcodec/armv4l/Makefile.am @@ -2,7 +2,9 @@ ## Process this file with automake to produce Makefile.in ## -CFLAGS = @GLOBAL_CFLAGS@ @LIBFFMPEG_CFLAGS@ -DCONFIG_DECODERS -DHAVE_AV_CONFIG_H +#CFLAGS = @GLOBAL_CFLAGS@ @LIBFFMPEG_CFLAGS@ -DCONFIG_DECODERS -DHAVE_AV_CONFIG_H + +CFLAGS = -O2 @LIBFFMPEG_CFLAGS@ -DCONFIG_DECODERS -DHAVE_AV_CONFIG_H ASFLAGS = LIBTOOL = $(SHELL) $(top_builddir)/libtool-nofpic diff --git a/src/libffmpeg/libavcodec/i386/Makefile.am b/src/libffmpeg/libavcodec/i386/Makefile.am index 72cbcc92c..1620b967a 100644 --- a/src/libffmpeg/libavcodec/i386/Makefile.am +++ b/src/libffmpeg/libavcodec/i386/Makefile.am @@ -2,9 +2,12 @@ ## Process this file with automake to produce Makefile.in ## -#CFLAGS = -D_FILE_OFFSET_BITS=64 @GLOBAL_CFLAGS@ -DCONFIG_DECODERS -DHAVE_AV_CONFIG_H +#CFLAGS = @GLOBAL_CFLAGS@ @LIBFFMPEG_CFLAGS@ -DCONFIG_DECODERS -DHAVE_AV_CONFIG_H + +# we must not use GLOBAL_CFLAGS here, gcc optimizations produce +# bad code if we do so. +CFLAGS = -O2 @LIBFFMPEG_CFLAGS@ -DCONFIG_DECODERS -DHAVE_AV_CONFIG_H -CFLAGS = @GLOBAL_CFLAGS@ @LIBFFMPEG_CFLAGS@ -DCONFIG_DECODERS -DHAVE_AV_CONFIG_H ASFLAGS = LIBTOOL = $(SHELL) $(top_builddir)/libtool-nofpic -- cgit v1.2.3