/[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.144 Revision 1.145
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.144 2009/08/16 00:16:12 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.145 2009/10/04 10:00:53 ssuominen 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
717bindnow-flags() { 717bindnow-flags() {
718 eerror "QA: stop using the bindnow-flags function ... simply drop it from your ebuild" 718 eerror "QA: stop using the bindnow-flags function ... simply drop it from your ebuild"
719 die "Stop using bindnow-flags." 719 die "Stop using bindnow-flags."
720} 720}
721 721
722# @FUNCTION: no-as-needed
723# @RETURN: Flag to disable asneeded behavior for use with append-ldflags.
724no-as-needed() {
725 case $($(tc-getLD) -v 2>&1 </dev/null) in
726 *GNU*) # GNU ld
727 echo "-Wl,--no-as-needed" ;;
728 esac
729}
722 730
723# Some tests for when we screw with things and want to make 731# Some tests for when we screw with things and want to make
724# sure we didn't break anything 732# sure we didn't break anything
725#TESTS() { 733#TESTS() {
726# CFLAGS="-a -b -c=1" 734# CFLAGS="-a -b -c=1"

Legend:
Removed from v.1.144  
changed lines
  Added in v.1.145

  ViewVC Help
Powered by ViewVC 1.1.20