/[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.117 Revision 1.118
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.117 2007/03/04 21:13:17 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.118 2007/03/24 07:07:18 vapier Exp $
4# 4#
5# Maintainer: toolchain@gentoo.org 5# Maintainer: toolchain@gentoo.org
6 6
7# need access to emktemp() 7# need access to emktemp()
8inherit eutils toolchain-funcs multilib 8inherit eutils toolchain-funcs multilib
165} 165}
166 166
167filter-flags() { 167filter-flags() {
168 _filter-hardened "$@" 168 _filter-hardened "$@"
169 _filter-var CFLAGS "$@" 169 _filter-var CFLAGS "$@"
170 _filter-var CPPFLAGS "$@"
170 _filter-var CXXFLAGS "$@" 171 _filter-var CXXFLAGS "$@"
171 return 0 172 return 0
172} 173}
173 174
174filter-lfs-flags() { 175filter-lfs-flags() {
175 [[ -n $@ ]] && die "filter-lfs-flags takes no arguments" 176 [[ -n $@ ]] && die "filter-lfs-flags takes no arguments"
176 filter-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE 177 filter-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
177} 178}
178 179
180append-cppflags() {
181 [[ -z $* ]] && return 0
182 export CPPFLAGS="${CPPFLAGS} $*"
183 return 0
184}
185
179append-lfs-flags() { 186append-lfs-flags() {
180 [[ -n $@ ]] && die "append-lfs-flags takes no arguments" 187 [[ -n $@ ]] && die "append-lfs-flags takes no arguments"
181 append-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE 188 append-cppflags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
182} 189}
183 190
184append-flags() { 191append-flags() {
185 [[ -z $* ]] && return 0 192 [[ -z $* ]] && return 0
186 export CFLAGS="${CFLAGS} $*" 193 export CFLAGS="${CFLAGS} $*"

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.118

  ViewVC Help
Powered by ViewVC 1.1.20