/[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.93 Revision 1.94
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 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.93 2005/09/27 01:06:47 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.94 2005/10/09 22:28:35 flameeyes Exp $
4 4
5 5
6# need access to emktemp() 6# need access to emktemp()
7inherit eutils toolchain-funcs multilib 7inherit eutils toolchain-funcs multilib
8 8
57# -fno-stack-protector to {C,CXX,LD}FLAGS 57# -fno-stack-protector to {C,CXX,LD}FLAGS
58# when a package is filtering -fstack-protector, -fstack-protector-all 58# when a package is filtering -fstack-protector, -fstack-protector-all
59# notice: modern automatic specs files will also suppress -fstack-protector-all 59# notice: modern automatic specs files will also suppress -fstack-protector-all
60# when only -fno-stack-protector is given 60# when only -fno-stack-protector is given
61# 61#
62#### bindnow-flags ####
63# Returns the flags to enable "now" binding in the current selected linker.
62# 64#
63################ DEPRECATED functions ################ 65################ DEPRECATED functions ################
64# The following are still present to avoid breaking existing 66# The following are still present to avoid breaking existing
65# code more than necessary; however they are deprecated. Please 67# code more than necessary; however they are deprecated. Please
66# use gcc-specs-* from toolchain-funcs.eclass instead, if you 68# use gcc-specs-* from toolchain-funcs.eclass instead, if you
496 498
497 replace-cpu-flags ev6{7,8} ev6 499 replace-cpu-flags ev6{7,8} ev6
498 500
499 export CFLAGS CXXFLAGS 501 export CFLAGS CXXFLAGS
500} 502}
503
504# Gets the flags needed for "NOW" binding
505bindnow-flags() {
506 case $($(tc-getLD) -v 2>&1 </dev/null) in
507 *GNU* | *'with BFD'*) # GNU ld
508 echo "-Wl,-z,now" ;;
509 *Apple*) # Darwin ld
510 echo "-bind_at_load" ;;
511 *)
512 # Some linkers just recognize -V instead of -v
513 case $($(tc-getLD) -V 2>&1 </dev/null) in
514 *Solaris*) # Solaris accept almost the same GNU options
515 echo "-Wl,-z,now" ;;
516 esac
517 ;;
518 esac
519}

Legend:
Removed from v.1.93  
changed lines
  Added in v.1.94

  ViewVC Help
Powered by ViewVC 1.1.20