/[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.160 Revision 1.161
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.160 2011/12/10 20:03:17 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.161 2011/12/15 05:23:15 vapier Exp $
4 4
5# @ECLASS: flag-o-matic.eclass 5# @ECLASS: flag-o-matic.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# toolchain@gentoo.org 7# toolchain@gentoo.org
8# @BLURB: common functions to manipulate and query toolchain flags 8# @BLURB: common functions to manipulate and query toolchain flags
685 *GNU*) # GNU ld 685 *GNU*) # GNU ld
686 echo "-Wl,--no-as-needed" ;; 686 echo "-Wl,--no-as-needed" ;;
687 esac 687 esac
688} 688}
689 689
690# Some tests for when we screw with things and want to make
691# sure we didn't break anything
692#TESTS() {
693# CFLAGS="-a -b -c=1"
694# CXXFLAGS="-x -y -z=2"
695# LDFLAGS="-l -m -n=3"
696#
697# die() { exit 1; }
698# (is-flag 1 2 3) && die
699# (is-ldflag 1 2 3) && die
700#
701# is-flagq -l && die
702# is-ldflagq -a && die
703# is-flagq -a || die
704# is-flagq -x || die
705# is-ldflagq -n=* || die
706# is-ldflagq -n && die
707#
708# strip-unsupported-flags
709# [[ ${CFLAGS} == "-c=1" ]] || die
710# [[ ${CXXFLAGS} == "-y -z=2" ]] || die
711#
712# echo "All tests pass"
713#}
714#TESTS
715
716fi 690fi

Legend:
Removed from v.1.160  
changed lines
  Added in v.1.161

  ViewVC Help
Powered by ViewVC 1.1.20