summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-04-14 11:10:27 +0000
committerSimon Stelling <blubb@gentoo.org>2006-04-14 11:10:27 +0000
commitd200d5deb058eccbdc227352ca9ca909b0e49a3a (patch)
treee3465628fea9f9ab7e2a758e520747b2ad639e4a
parentup gentoo-gdm-themes to r3 to fix translation issues (diff)
downloadhistorical-d200d5deb058eccbdc227352ca9ca909b0e49a3a.tar.gz
historical-d200d5deb058eccbdc227352ca9ca909b0e49a3a.tar.bz2
historical-d200d5deb058eccbdc227352ca9ca909b0e49a3a.zip
only remove flags if they are not part of another flag; remove 5 sec pause
-rw-r--r--profiles/default-linux/amd64/profile.bashrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/profiles/default-linux/amd64/profile.bashrc b/profiles/default-linux/amd64/profile.bashrc
index 71d2658a689f..adf403a2691c 100644
--- a/profiles/default-linux/amd64/profile.bashrc
+++ b/profiles/default-linux/amd64/profile.bashrc
@@ -38,18 +38,20 @@ test_broken_flags() {
if [[ ${EBUILD_PHASE} == "setup" ]]; then
trigger=0
+ CFLAGS=" ${CFLAGS} "
for flag in ${CFLAGS} ; do
broken_flag=$(test_broken_flags $(getPROG CC gcc) ${flag})
if [[ -n ${broken_flag} ]]; then
ewarn "Filtering out the non-existing CFLAG \"${broken_flag}\""
- CFLAGS=${CFLAGS//${broken_flag}}
+ CFLAGS=${CFLAGS//" ${broken_flag} "}
fi
done
+ CXXFLAGS=" ${CXXFLAGS} "
for flag in ${CXXFLAGS} ; do
broken_flag=$(test_broken_flags $(getPROG CXX g++) ${flag})
if [[ -n ${broken_flag} ]]; then
ewarn "Filtering out the non-existing CXXFLAG \"${broken_flag}\""
- CXXFLAGS=${CXXFLAGS//${broken_flag}}
+ CXXFLAGS=${CXXFLAGS//" ${broken_flag} "}
fi
done
for flag in "-fvisibility=hidden" "-fvisibility-hidden" "-fvisibility-inlines-hidden" "-fPIC" "-fpic" "-m32" "-m64" "-g3" "-ggdb3" ; do
@@ -60,7 +62,6 @@ if [[ ${EBUILD_PHASE} == "setup" ]]; then
ewarn ""
ewarn "Before you file a bug please remove these flags and "
ewarn "re-compile the package in question as well as all its dependencies"
- sleep 5
fi
unset trigger broken_flag
fi