Ticket #3231: mythtv-trunk-mcpu-march.patch
File mythtv-trunk-mcpu-march.patch, 2.9 KB (added by , 17 years ago) |
---|
-
(a) configure vs. (b) /home/cardoe/configure.mythtv
a b 1766 1766 if test $tune != "generic"; then 1767 1767 case $tune in 1768 1768 601|ppc601|PowerPC601) 1769 ARCHFLAGS="-m cpu=601"1769 ARCHFLAGS="-march=601" 1770 1770 if test $altivec = "yes"; then 1771 1771 echo "WARNING: Tuning for PPC601 but AltiVec enabled!"; 1772 1772 fi 1773 1773 ;; 1774 1774 603*|ppc603*|PowerPC603*) 1775 ARCHFLAGS="-m cpu=603"1775 ARCHFLAGS="-march=603" 1776 1776 if test $altivec = "yes"; then 1777 1777 echo "WARNING: Tuning for PPC603 but AltiVec enabled!"; 1778 1778 fi 1779 1779 ;; 1780 1780 604*|ppc604*|PowerPC604*) 1781 ARCHFLAGS="-m cpu=604"1781 ARCHFLAGS="-march=604" 1782 1782 if test $altivec = "yes"; then 1783 1783 echo "WARNING: Tuning for PPC604 but AltiVec enabled!"; 1784 1784 fi 1785 1785 ;; 1786 1786 G3|g3|75*|ppc75*|PowerPC75*) 1787 ARCHFLAGS="-m cpu=750 -mtune=750 -mpowerpc-gfxopt"1787 ARCHFLAGS="-march=750 -mtune=750 -mpowerpc-gfxopt" 1788 1788 if test $altivec = "yes"; then 1789 1789 echo "WARNING: Tuning for PPC75x but AltiVec enabled!"; 1790 1790 fi 1791 1791 ;; 1792 1792 G4|g4|745*|ppc745*|PowerPC745*) 1793 ARCHFLAGS="-m cpu=7450 -mtune=7450 -mpowerpc-gfxopt"1793 ARCHFLAGS="-march=7450 -mtune=7450 -mpowerpc-gfxopt" 1794 1794 if test $altivec = "no"; then 1795 1795 echo "WARNING: Tuning for PPC745x but AltiVec disabled!"; 1796 1796 fi 1797 1797 ;; 1798 1798 74*|ppc74*|PowerPC74*) 1799 ARCHFLAGS="-m cpu=7400 -mtune=7400 -mpowerpc-gfxopt"1799 ARCHFLAGS="-march=7400 -mtune=7400 -mpowerpc-gfxopt" 1800 1800 if test $altivec = "no"; then 1801 1801 echo "WARNING: Tuning for PPC74xx but AltiVec disabled!"; 1802 1802 fi 1803 1803 ;; 1804 1804 G5|g5|970|ppc970|PowerPC970|power4*|Power4*) 1805 ARCHFLAGS="-m cpu=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64"1805 ARCHFLAGS="-march=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64" 1806 1806 if test $altivec = "no"; then 1807 1807 echo "WARNING: Tuning for PPC970 but AltiVec disabled!"; 1808 1808 fi 1809 1809 POWERPCMODE="64bits" 1810 1810 ;; 1811 1811 sparc64) 1812 ARCHFLAGS="-m cpu=v9 -mtune=v9"1812 ARCHFLAGS="-march=v9 -mtune=v9" 1813 1813 ;; 1814 1814 *) 1815 1815 ARCHFLAGS="-mtune=$tune" … … 1818 1818 fi 1819 1819 1820 1820 if test x"$cpu_overide" = x"yes"; then 1821 ARCHFLAGS="-m cpu=$arch_raw $ARCHFLAGS"1821 ARCHFLAGS="-march=$arch_raw $ARCHFLAGS" 1822 1822 fi 1823 1823 1824 1824 # make sure we can execute files in $TMPDIR … … 2045 2045 if test x"$tune" = x"generic" -a x"$arch" = x"x86_64" -a x"$cpu_overide" != x"yes"; then 2046 2046 ARCHFLAGS="-march=k8" 2047 2047 elif test x"$tune" = x"generic" -a x"$arch" = x"sparc64" -a x"$cpu_overide" != x"yes"; then 2048 ARCHFLAGS="-m cpu=ultrasparc -mvis"2048 ARCHFLAGS="-march=ultrasparc -mvis" 2049 2049 fi 2050 2050 2051 2051 if test x"$proc_error_msg" = x"yes"; then