Ticket #3231: mythtv-trunk-mcpu-march.patch

File mythtv-trunk-mcpu-march.patch, 2.9 KB (added by cardoe@…, 17 years ago)
  • (a) configure vs. (b) /home/cardoe/configure.mythtv

    a b  
    17661766if test $tune != "generic"; then
    17671767    case $tune in
    17681768        601|ppc601|PowerPC601)
    1769             ARCHFLAGS="-mcpu=601"
     1769            ARCHFLAGS="-march=601"
    17701770            if test $altivec = "yes"; then
    17711771                echo "WARNING: Tuning for PPC601 but AltiVec enabled!";
    17721772            fi
    17731773        ;;
    17741774        603*|ppc603*|PowerPC603*)
    1775             ARCHFLAGS="-mcpu=603"
     1775            ARCHFLAGS="-march=603"
    17761776            if test $altivec = "yes"; then
    17771777                echo "WARNING: Tuning for PPC603 but AltiVec enabled!";
    17781778            fi
    17791779        ;;
    17801780        604*|ppc604*|PowerPC604*)
    1781             ARCHFLAGS="-mcpu=604"
     1781            ARCHFLAGS="-march=604"
    17821782            if test $altivec = "yes"; then
    17831783                echo "WARNING: Tuning for PPC604 but AltiVec enabled!";
    17841784            fi
    17851785        ;;
    17861786        G3|g3|75*|ppc75*|PowerPC75*)
    1787             ARCHFLAGS="-mcpu=750 -mtune=750 -mpowerpc-gfxopt"
     1787            ARCHFLAGS="-march=750 -mtune=750 -mpowerpc-gfxopt"
    17881788            if test $altivec = "yes"; then
    17891789                echo "WARNING: Tuning for PPC75x but AltiVec enabled!";
    17901790            fi
    17911791        ;;
    17921792        G4|g4|745*|ppc745*|PowerPC745*)
    1793             ARCHFLAGS="-mcpu=7450 -mtune=7450 -mpowerpc-gfxopt"
     1793            ARCHFLAGS="-march=7450 -mtune=7450 -mpowerpc-gfxopt"
    17941794            if test $altivec = "no"; then
    17951795                echo "WARNING: Tuning for PPC745x but AltiVec disabled!";
    17961796            fi
    17971797        ;;
    17981798        74*|ppc74*|PowerPC74*)
    1799             ARCHFLAGS="-mcpu=7400 -mtune=7400 -mpowerpc-gfxopt"
     1799            ARCHFLAGS="-march=7400 -mtune=7400 -mpowerpc-gfxopt"
    18001800            if test $altivec = "no"; then
    18011801                echo "WARNING: Tuning for PPC74xx but AltiVec disabled!";
    18021802            fi
    18031803        ;;
    18041804        G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
    1805             ARCHFLAGS="-mcpu=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64"
     1805            ARCHFLAGS="-march=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64"
    18061806            if test $altivec = "no"; then
    18071807                echo "WARNING: Tuning for PPC970 but AltiVec disabled!";
    18081808            fi
    18091809            POWERPCMODE="64bits"
    18101810        ;;
    18111811        sparc64)
    1812             ARCHFLAGS="-mcpu=v9 -mtune=v9"
     1812            ARCHFLAGS="-march=v9 -mtune=v9"
    18131813        ;;               
    18141814        *)
    18151815            ARCHFLAGS="-mtune=$tune"
     
    18181818fi
    18191819
    18201820if test x"$cpu_overide" = x"yes"; then
    1821     ARCHFLAGS="-mcpu=$arch_raw $ARCHFLAGS"
     1821    ARCHFLAGS="-march=$arch_raw $ARCHFLAGS"
    18221822fi
    18231823
    18241824# make sure we can execute files in $TMPDIR
     
    20452045if test x"$tune" = x"generic" -a x"$arch" = x"x86_64" -a x"$cpu_overide" != x"yes"; then
    20462046   ARCHFLAGS="-march=k8"
    20472047elif test x"$tune" = x"generic" -a x"$arch" = x"sparc64" -a x"$cpu_overide" != x"yes"; then
    2048    ARCHFLAGS="-mcpu=ultrasparc -mvis"
     2048   ARCHFLAGS="-march=ultrasparc -mvis"
    20492049fi
    20502050
    20512051if test x"$proc_error_msg" = x"yes"; then