/[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.101 Revision 1.102
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.101 2006/01/01 01:14:59 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.102 2006/01/10 01:00:29 vapier 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
526 [[ -z ${LDFLAGS// } ]] \ 526 [[ -z ${LDFLAGS// } ]] \
527 && LDFLAGS="" \ 527 && LDFLAGS="" \
528 || LDFLAGS=${LDFLAGS:1:${#LDFLAGS}-2} 528 || LDFLAGS=${LDFLAGS:1:${#LDFLAGS}-2}
529 export LDFLAGS 529 export LDFLAGS
530 return 0 530 return 0
531}
532
533# Turn C style ldflags (-Wl,-foo) into straight ldflags
534raw-ldflags() {
535 local x input="$@"
536 [[ -z ${input} ]] && input=${LDFLAGS}
537 set --
538 for x in ${input} ; do
539 set -- "$@" ${x#-Wl,}
540 done
541 echo "$@"
531} 542}
532 543
533fstack-flags() { 544fstack-flags() {
534 if gcc-specs-ssp; then 545 if gcc-specs-ssp; then
535 [ -z "`is-flag -fno-stack-protector`" ] && 546 [ -z "`is-flag -fno-stack-protector`" ] &&

Legend:
Removed from v.1.101  
changed lines
  Added in v.1.102

  ViewVC Help
Powered by ViewVC 1.1.20