summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-10-26 00:40:52 +0000
committerMike Frysinger <vapier@gentoo.org>2003-10-26 00:40:52 +0000
commit19d36a683a121cc66c3a6f4418a3f40cf7f2a044 (patch)
tree5d05fe003b350f1de7ce4d5b72cf6b1c719998be /eclass
parentPATCH_VER 0.3. Add 0280_hppa_4.3.0-build-zlib-with-fpic.patch and 0251_alpha_... (diff)
downloadgentoo-2-19d36a683a121cc66c3a6f4418a3f40cf7f2a044.tar.gz
gentoo-2-19d36a683a121cc66c3a6f4418a3f40cf7f2a044.tar.bz2
gentoo-2-19d36a683a121cc66c3a6f4418a3f40cf7f2a044.zip
fix return values
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index c412b2ce0abe..492df55e42d2 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.27 2003/09/24 05:51:32 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.28 2003/10/26 00:40:52 vapier Exp $
#
# Author Bart Verwilst <verwilst@gentoo.org>
@@ -109,14 +109,15 @@ append-flags() {
CFLAGS="${CFLAGS} $@"
CXXFLAGS="${CXXFLAGS} $@"
for x in $@; do
- [ "${x}" = "-fno-stack-protector" ] &&
- fstack-flags
+ [ "${x}" = "-fno-stack-protector" ] && fstack-flags
done
+ return 0
}
replace-flags() {
CFLAGS="${CFLAGS/${1}/${2} }"
CXXFLAGS="${CXXFLAGS/${1}/${2} }"
+ return 0
}
is-flag() {
@@ -179,13 +180,13 @@ strip-flags() {
get-flag() {
local findflag="$1"
-
for f in ${CFLAGS} ${CXXFLAGS} ; do
if [ "${f/${findflag}}" != "${f}" ] ; then
echo "${f/-${findflag}=}"
- return
+ return 0
fi
done
+ return 1
}
replace-sparc64-flags() {
@@ -220,6 +221,7 @@ replace-sparc64-flags() {
append-ldflags() {
LDFLAGS="${LDFLAGS} $@"
+ return 0
}
etexec-flags() {