summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2006-04-16 15:28:05 +0000
committerPatrick McLean <chutzpah@gentoo.org>2006-04-16 15:28:05 +0000
commit7feeab67ea42bf74afd2939706348b43f2037fd5 (patch)
tree0d24ddad0cde27e3571d69d2eccfcabc8cc03fd2 /profiles
parenttrim whitespace (diff)
downloadhistorical-7feeab67ea42bf74afd2939706348b43f2037fd5.tar.gz
historical-7feeab67ea42bf74afd2939706348b43f2037fd5.tar.bz2
historical-7feeab67ea42bf74afd2939706348b43f2037fd5.zip
Fix for bug #130120.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/default-linux/amd64/profile.bashrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/profiles/default-linux/amd64/profile.bashrc b/profiles/default-linux/amd64/profile.bashrc
index 042596e91a23..b14aa8061c39 100644
--- a/profiles/default-linux/amd64/profile.bashrc
+++ b/profiles/default-linux/amd64/profile.bashrc
@@ -60,6 +60,10 @@ filter_invalid_flags() {
done
}
+bashrc_has() {
+ [[ " ${*:2} " == *" $1 "* ]]
+}
+
if [[ ${EBUILD_PHASE} == "setup" ]]; then
filter_invalid_flags
@@ -67,11 +71,11 @@ if [[ ${EBUILD_PHASE} == "setup" ]]; then
unset trigger
for flag in "${BAD_FLAGS[@]}"; do
- if has ${flag} ${CFLAGS}; then
+ if bashrc_has ${flag} ${CFLAGS}; then
trigger=1
ewarn "Your CFLAGS contain(s) \"${flag}\" which can break packages."
fi
- if has ${flag} ${CXXFLAGS}; then
+ if bashrc_has ${flag} ${CXXFLAGS}; then
trigger=1
ewarn "Your CXXFLAGS contain(s) \"${flag}\" which can break packages."
fi