aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorGuillaume Poirier <gpoirier@mplayerhq.hu>2006-10-19 15:49:52 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2006-10-19 15:49:52 +0000
commit1c5d830c25b283173d43f4b68b4683f1193fc7d7 (patch)
tree521b98f4f1f6087236f1cc339e230118b34d1c67 /configure
parentf624f029f0f39b26e64eb26316966c18ef7a6074 (diff)
downloadffmpeg-1c5d830c25b283173d43f4b68b4683f1193fc7d7.tar.gz
10l: Revert bogus use of GCC's -march=xx:
Almost all CPU targets use -mcpu=xx to set architecture type, register usage, choice of mnemonics, and instruction scheduling parameters, except x86, MIPS, HPPA which uses -march=xx Originally committed as revision 6736 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure b/configure
index 56d022a5a7..d345829e4e 100755
--- a/configure
+++ b/configure
@@ -1051,49 +1051,49 @@ POWERPCMODE="32bits"
if test $cpu != "generic"; then
case $cpu in
601|ppc601|PowerPC601)
- add_cflags "-march=601"
+ add_cflags "-mcpu=601"
if test $altivec = "yes"; then
echo "WARNING: Tuning for PPC601 but AltiVec enabled!";
fi
TUNECPU=ppc601
;;
603*|ppc603*|PowerPC603*)
- add_cflags "-march=603"
+ add_cflags "-mcpu=603"
if test $altivec = "yes"; then
echo "WARNING: Tuning for PPC603 but AltiVec enabled!";
fi
TUNECPU=ppc603
;;
604*|ppc604*|PowerPC604*)
- add_cflags "-march=604"
+ add_cflags "-mcpu=604"
if test $altivec = "yes"; then
echo "WARNING: Tuning for PPC604 but AltiVec enabled!";
fi
TUNECPU=ppc604
;;
G3|g3|75*|ppc75*|PowerPC75*)
- add_cflags "-march=750 -mpowerpc-gfxopt"
+ add_cflags "-mcpu=750 -mpowerpc-gfxopt"
if test $altivec = "yes"; then
echo "WARNING: Tuning for PPC75x but AltiVec enabled!";
fi
TUNECPU=ppc750
;;
G4|g4|745*|ppc745*|PowerPC745*)
- add_cflags "-march=7450 -mpowerpc-gfxopt"
+ add_cflags "-mcpu=7450 -mpowerpc-gfxopt"
if test $altivec = "no"; then
echo "WARNING: Tuning for PPC745x but AltiVec disabled!";
fi
TUNECPU=ppc7450
;;
74*|ppc74*|PowerPC74*)
- add_cflags "-march=7400 -mpowerpc-gfxopt"
+ add_cflags "-mcpu=7400 -mpowerpc-gfxopt"
if test $altivec = "no"; then
echo "WARNING: Tuning for PPC74xx but AltiVec disabled!";
fi
TUNECPU=ppc7400
;;
G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
- add_cflags "-march=970 -mpowerpc-gfxopt -mpowerpc64"
+ add_cflags "-mcpu=970 -mpowerpc-gfxopt -mpowerpc64"
if test $altivec = "no"; then
echo "WARNING: Tuning for PPC970 but AltiVec disabled!";
fi
@@ -1104,7 +1104,7 @@ if test $cpu != "generic"; then
add_cflags "-march=$cpu"
;;
sparc64)
- add_cflags "-march=v9"
+ add_cflags "-mcpu=v9"
;;
*)
echo "WARNING: Unknown CPU \"$cpu\", ignored."