/[gentoo-x86]/eclass/flag-o-matic.eclass
Gentoo

Diff of /eclass/flag-o-matic.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.111 Revision 1.112
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.111 2006/10/14 20:27:21 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.112 2006/11/15 22:17:56 vapier Exp $
4# 4#
5# Maintainer: base-system@gentoo.org 5# Maintainer: base-system@gentoo.org
6 6
7# need access to emktemp() 7# need access to emktemp()
8inherit eutils toolchain-funcs multilib 8inherit eutils toolchain-funcs multilib
571 set -- "$@" ${x//,/ } 571 set -- "$@" ${x//,/ }
572 done 572 done
573 echo "$@" 573 echo "$@"
574} 574}
575 575
576# This is thanks to great work from Paul de Vrieze <gentoo-user@devrieze.net>,
577# bug #9016. Also thanks to Jukka Salmi <salmi@gmx.net> (bug #13907) for more
578# fixes.
579#
580# Export CFLAGS and CXXFLAGS that are compadible with gcc-2.95.3
581gcc2-flags() {
582 if [[ $(tc-arch) == "x86" || $(tc-arch) == "amd64" ]] ; then
583 CFLAGS=${CFLAGS//-mtune=/-mcpu=}
584 CXXFLAGS=${CXXFLAGS//-mtune=/-mcpu=}
585 fi
586
587 replace-cpu-flags k6-{2,3} k6
588 replace-cpu-flags athlon{,-{tbird,4,xp,mp}} i686
589
590 replace-cpu-flags pentium-mmx i586
591 replace-cpu-flags pentium{2,3,4} i686
592
593 replace-cpu-flags ev6{7,8} ev6
594
595 export CFLAGS CXXFLAGS
596}
597
598# Gets the flags needed for "NOW" binding 576# Gets the flags needed for "NOW" binding
599bindnow-flags() { 577bindnow-flags() {
600 case $($(tc-getLD) -v 2>&1 </dev/null) in 578 case $($(tc-getLD) -v 2>&1 </dev/null) in
601 *GNU* | *'with BFD'*) # GNU ld 579 *GNU* | *'with BFD'*) # GNU ld
602 echo "-Wl,-z,now" ;; 580 echo "-Wl,-z,now" ;;

Legend:
Removed from v.1.111  
changed lines
  Added in v.1.112

  ViewVC Help
Powered by ViewVC 1.1.20