aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Christiansen <danchr@daimi.au.dk>2003-07-15 23:58:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-07-15 23:58:31 +0000
commit8d6625b6217ce77a61c98886bff28b799a8894b0 (patch)
treec4caeba752b56022a067f90455258838fa7f1e26
parent8683e4a0c0445e7dd405a9a1d598437941cfb394 (diff)
downloadffmpeg-8d6625b6217ce77a61c98886bff28b799a8894b0.tar.gz
Apple GCC 3.3 compile fixes patch by (Dan Christiansen <danchr at daimi dot au dot dk>)
Originally committed as revision 2049 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure11
1 files 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 !";