1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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
This commit is contained in:
Dan Christiansen 2003-07-15 23:58:31 +00:00 committed by Michael Niedermayer
parent 8683e4a0c0
commit 8d6625b621

11
configure vendored
View File

@ -167,11 +167,14 @@ darwin="yes"
strip="strip -x" strip="strip -x"
LDFLAGS="-d" LDFLAGS="-d"
FFSLDFLAGS=-Wl,-bind_at_load 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 case "$gcc_version" in
*2.95*) *2.95*)
CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer" 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" CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer -mdynamic-no-pic"
;; ;;
@ -382,14 +385,14 @@ if test $tune != "generic"; then
fi fi
TUNECPU=ppc604 TUNECPU=ppc604
;; ;;
G3|75*|ppc75*|PowerPC75*) G3|g3|75*|ppc75*|PowerPC75*)
CFLAGS="$CFLAGS -mcpu=750 -mtune=750" CFLAGS="$CFLAGS -mcpu=750 -mtune=750"
if test $altivec = "yes"; then if test $altivec = "yes"; then
echo "WARNING: tuning for PPC75x but altivec enabled !"; echo "WARNING: tuning for PPC75x but altivec enabled !";
fi fi
TUNECPU=ppc750 TUNECPU=ppc750
;; ;;
G4|745*|ppc745*|PowerPC745*) G4|g4|745*|ppc745*|PowerPC745*)
CFLAGS="$CFLAGS -mcpu=7450 -mtune=7450" CFLAGS="$CFLAGS -mcpu=7450 -mtune=7450"
if test $altivec = "no"; then if test $altivec = "no"; then
echo "WARNING: tuning for PPC745x but altivec disabled !"; echo "WARNING: tuning for PPC745x but altivec disabled !";
@ -403,7 +406,7 @@ if test $tune != "generic"; then
fi fi
TUNECPU=ppc7400 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 " CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc64 -force_cpusubtype_ALL "
if test $altivec = "no"; then if test $altivec = "no"; then
echo "WARNING: tuning for PPC970 but altivec disabled !"; echo "WARNING: tuning for PPC970 but altivec disabled !";