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

File mythtv-trunk-mcpu-march.2.patch, 2.3 KB (added by tom@…, 19 years ago)

updated to apply cleanly against trunk

  • configure

    old new  
    17911791    }
    17921792    case $tune in
    17931793        601|ppc601|PowerPC601)
    1794             ARCHFLAGS="-mcpu=601"
     1794            ARCHFLAGS="-march=601"
    17951795            warn_altivec enabled PPC601
    17961796        ;;
    17971797        603*|ppc603*|PowerPC603*)
    1798             ARCHFLAGS="-mcpu=603"
     1798            ARCHFLAGS="-march=603"
    17991799            warn_altivec enabled PPC603
    18001800        ;;
    18011801        604*|ppc604*|PowerPC604*)
    1802             ARCHFLAGS="-mcpu=604"
     1802            ARCHFLAGS="-march=604"
    18031803            warn_altivec enabled PPC604
    18041804        ;;
    18051805        G3|g3|75*|ppc75*|PowerPC75*)
    1806             ARCHFLAGS="-mcpu=750 -mtune=750 -mpowerpc-gfxopt"
     1806            ARCHFLAGS="-march=750 -mtune=750 -mpowerpc-gfxopt"
    18071807            warn_altivec enabled PPC75x
    18081808        ;;
    18091809        G4|g4|745*|ppc745*|PowerPC745*)
    1810             ARCHFLAGS="-mcpu=7450 -mtune=7450 -mpowerpc-gfxopt"
     1810            ARCHFLAGS="-march=7450 -mtune=7450 -mpowerpc-gfxopt"
    18111811            warn_altivec disabled PPC745x
    18121812        ;;
    18131813        74*|ppc74*|PowerPC74*)
    1814             ARCHFLAGS="-mcpu=7400 -mtune=7400 -mpowerpc-gfxopt"
     1814            ARCHFLAGS="-march=7400 -mtune=7400 -mpowerpc-gfxopt"
    18151815            warn_altivec disabled PPC74xx
    18161816        ;;
    18171817        G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
    1818             ARCHFLAGS="-mcpu=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64"
     1818            ARCHFLAGS="-march=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64"
    18191819            warn_altivec disabled PPC970
    18201820            POWERPCMODE="64bits"
    18211821        ;;
    18221822        sparc64)
    1823             ARCHFLAGS="-mcpu=v9 -mtune=v9"
     1823            ARCHFLAGS="-march=v9 -mtune=v9"
    18241824        ;;
    18251825        bf*) #bf531 bf532 bf533 bf561 bf5xx all get this config
    18261826            add_cflags "-mfdpic"
     
    18331833fi
    18341834
    18351835if enabled cpu_overide; then
    1836     ARCHFLAGS="-mcpu=$arch_raw $ARCHFLAGS"
     1836    ARCHFLAGS="-march=$arch_raw $ARCHFLAGS"
    18371837fi
    18381838
    18391839gnu_make(){
     
    20922092if test x"$tune" = x"generic" -a x"$arch" = x"x86_64" -a x"$cpu_overide" != x"yes"; then
    20932093   ARCHFLAGS="-march=k8"
    20942094elif test x"$tune" = x"generic" -a x"$arch" = x"sparc64" -a x"$cpu_overide" != x"yes"; then
    2095    ARCHFLAGS="-mcpu=ultrasparc -mvis"
     2095   ARCHFLAGS="-march=ultrasparc -mvis"
    20962096fi
    20972097
    20982098if enabled proc_error_msg; then