diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-06-25 00:18:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-06-25 00:18:04 +0000 |
commit | 3ca48a984ab298d6db88e28db5c4e04ade3a4889 (patch) | |
tree | 279f817adb84d83b7bde432b9b375d70ce6da4d1 | |
parent | update copyright line: Gentoo Technologies => Gentoo Foundation (diff) | |
download | gentoo-2-3ca48a984ab298d6db88e28db5c4e04ade3a4889.tar.gz gentoo-2-3ca48a984ab298d6db88e28db5c4e04ade3a4889.tar.bz2 gentoo-2-3ca48a984ab298d6db88e28db5c4e04ade3a4889.zip |
make sure CFLAGS are exported rather than just set #55092
-rw-r--r-- | eclass/flag-o-matic.eclass | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 97876467255a..1891a0197e71 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.58 2004/06/10 15:28:56 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.59 2004/06/25 00:18:04 vapier Exp $ # # Author Bart Verwilst <verwilst@gentoo.org> @@ -107,6 +107,7 @@ filter-flags() { done CFLAGS="${CFLAGS:1:${#CFLAGS}-2}" CXXFLAGS="${CXXFLAGS:1:${#CXXFLAGS}-2}" + export CFLAGS CXXFLAGS return 0 } @@ -135,6 +136,7 @@ replace-flags() { CXXFLAGS="${CXXFLAGS// ${1} / ${2} }" CFLAGS="${CFLAGS:1:${#CFLAGS}-2}" CXXFLAGS="${CXXFLAGS:1:${#CXXFLAGS}-2}" + export CFLAGS CXXFLAGS return 0 } @@ -232,10 +234,6 @@ strip-flags() { set +f # re-enable pathname expansion - useq debug \ - && einfo "CFLAGS=\"${NEW_CFLAGS}\"" \ - && einfo "CXXFLAGS=\"${NEW_CXXFLAGS}\"" - export CFLAGS="${NEW_CFLAGS}" export CXXFLAGS="${NEW_CXXFLAGS}" return 0 @@ -347,10 +345,12 @@ replace-sparc64-flags() { CXXFLAGS="${CXXFLAGS/-mcpu=${x}/-mcpu=v8 -mtune=${x}}" done fi + + export CFLAGS CXXFLAGS } append-ldflags() { - LDFLAGS="${LDFLAGS} $*" + export LDFLAGS="${LDFLAGS} $*" return 0 } @@ -364,6 +364,7 @@ filter-ldflags() { LDFLAGS="${LDFLAGS// ${x} / }" done LDFLAGS="${LDFLAGS:1:${#LDFLAGS}-2}" + export LDFLAGS return 0 } |