/[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.110 Revision 1.111
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.110 2006/08/01 00:49:16 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.111 2006/10/14 20:27:21 swegener 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
526 if [ "${CFLAGS/mtune}" != "${CFLAGS}" ]; then 526 if [ "${CFLAGS/mtune}" != "${CFLAGS}" ]; then
527 for x in ${SPARC64_CPUS}; do 527 for x in ${SPARC64_CPUS}; do
528 CFLAGS="${CFLAGS/-mcpu=${x}/-mcpu=v8}" 528 CFLAGS="${CFLAGS/-mcpu=${x}/-mcpu=v8}"
529 done 529 done
530 else 530 else
531 for x in ${SPARC64_CPUS}; do 531 for x in ${SPARC64_CPUS}; do
532 CFLAGS="${CFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}" 532 CFLAGS="${CFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}"
533 done 533 done
534 fi 534 fi
535 535
536 if [ "${CXXFLAGS/mtune}" != "${CXXFLAGS}" ]; then 536 if [ "${CXXFLAGS/mtune}" != "${CXXFLAGS}" ]; then
537 for x in ${SPARC64_CPUS}; do 537 for x in ${SPARC64_CPUS}; do
538 CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8}" 538 CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8}"
539 done 539 done
540 else 540 else
541 for x in ${SPARC64_CPUS}; do 541 for x in ${SPARC64_CPUS}; do
542 CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}" 542 CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}"
543 done 543 done
544 fi 544 fi
545 545
546 export CFLAGS CXXFLAGS 546 export CFLAGS CXXFLAGS

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

  ViewVC Help
Powered by ViewVC 1.1.20