From 8d6625b6217ce77a61c98886bff28b799a8894b0 Mon Sep 17 00:00:00 2001 From: Dan Christiansen Date: Tue, 15 Jul 2003 23:58:31 +0000 Subject: [PATCH] Apple GCC 3.3 compile fixes patch by (Dan Christiansen ) Originally committed as revision 2049 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 90cd0a6d6a..53afe7c18d 100755 --- a/configure +++ b/configure @@ -167,11 +167,14 @@ darwin="yes" strip="strip -x" LDFLAGS="-d" FFSLDFLAGS=-Wl,-bind_at_load -gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f4-)" +gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)" case "$gcc_version" in *2.95*) CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer" ;; +*3.3*) +CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic -force_cpusubtype_ALL" +;; *) CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic" ;; @@ -382,14 +385,14 @@ if test $tune != "generic"; then fi TUNECPU=ppc604 ;; - G3|75*|ppc75*|PowerPC75*) + G3|g3|75*|ppc75*|PowerPC75*) CFLAGS="$CFLAGS -mcpu=750 -mtune=750" if test $altivec = "yes"; then echo "WARNING: tuning for PPC75x but altivec enabled !"; fi TUNECPU=ppc750 ;; - G4|745*|ppc745*|PowerPC745*) + G4|g4|745*|ppc745*|PowerPC745*) CFLAGS="$CFLAGS -mcpu=7450 -mtune=7450" if test $altivec = "no"; then echo "WARNING: tuning for PPC745x but altivec disabled !"; @@ -403,7 +406,7 @@ if test $tune != "generic"; then fi TUNECPU=ppc7400 ;; - G5|970|ppc970|PowerPC970|power4*|Power4*) + G5|g5|970|ppc970|PowerPC970|power4*|Power4*) CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc64 -force_cpusubtype_ALL " if test $altivec = "no"; then echo "WARNING: tuning for PPC970 but altivec disabled !";