From 31ba0b4d7f4241916fd0f98e22ad97cb5aeacc90 Mon Sep 17 00:00:00 2001 From: François Revol Date: Sat, 2 Nov 2002 21:05:54 +0000 Subject: gcc optimization on BeOS (patch by François Revol ) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 1151 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 31964dc124..5a36eca825 100755 --- a/configure +++ b/configure @@ -75,6 +75,16 @@ BeOS) prefix="/boot/home/config" # helps building libavcodec CFLAGS="-O3 -DPIC -fomit-frame-pointer" +# 3 gcc releases known for BeOS, each with ugly bugs +gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)" +case "$gcc_version" in +2.9-beos-991026*|2.9-beos-000224*) echo "R5/GG gcc" +mmx="no" +;; +*20010315*) echo "BeBits gcc" +CFLAGS="$CFLAGS -fno-expensive-optimizations" +;; +esac SHFLAGS=-nostart # disable linux things audio_oss="no" -- cgit v1.2.3