Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 18511 | Differences between
and this patch

Collapse All | Expand All

(-)configure (-2 / +14 lines)
Lines 550-563 Link Here
550
  fi
550
  fi
551
551
552
  pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1`
552
  pname=`$_cpuinfo | grep 'model name' | cut -d ':' -f 2 | head -1`
553
  
553
  pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2  | cut -d ' ' -f 2 | head -1`
554
  pvendor=`$_cpuinfo | grep 'vendor_id' | cut -d ':' -f 2  | cut -d ' ' -f 2 | head -1`
555
  
554
  pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
556
  pfamily=`$_cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
555
  pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
557
  pmodel=`$_cpuinfo | grep -v 'model name' | grep 'model' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
556
  pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
558
  pstepping=`$_cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
557
559
558
  pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2 | head -1`
560
  pparam=`$_cpuinfo | grep 'features' | cut -d ':' -f 2 | head -1`
559
  if test -z "$pparam" ; then
561
  if test -z "$pparam" ; then
560
    pparam=`$_cpuinfo | grep 'flags' | cut -d ':' -f 2 | head -1`
562
    pparam=`$_cpuinfo | grep '^flags' | cut -d ':' -f 2 | head -1`
563
  fi
564
  
565
  # Fix for benh kernel on ppc
566
  if test -z "$pparam" ; then
567
    pparam=`$_cpuinfo | grep 'cpu' | cut -d ':' -f 2 | cut -d ' ' -f 3 | head -1`
561
  fi
568
  fi
562
569
563
  _mmx=no
570
  _mmx=no
Lines 764-770 Link Here
764
      _march="-march=$proc"
771
      _march="-march=$proc"
765
      _mcpu="-mcpu=$proc"
772
      _mcpu="-mcpu=$proc"
766
      _optimizing="$proc"
773
      _optimizing="$proc"
767
    fi
774
    fi    
768
  else
775
  else
769
    # i686 is probably the most common CPU - optimize for it
776
    # i686 is probably the most common CPU - optimize for it
770
    _mcpu="-mcpu=i686"
777
    _mcpu="-mcpu=i686"
Lines 848-853 Link Here
848
	_march='-mcpu=750'
855
	_march='-mcpu=750'
849
	_mcpu='-mtune=750'
856
	_mcpu='-mtune=750'
850
    fi
857
    fi
858
    
859
    if test "$pparam" = "altivec"; then
860
        _mcpu='-mcpu=750'
861
	_march='-maltivec -mabi=altivec'
862
    fi
851
    ;;
863
    ;;
852
864
853
  alpha)
865
  alpha)

Return to bug 18511