summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-24 23:14:37 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-24 23:14:37 +0000
commite753a4f9df91501ad4b66a0554476b053a1acbdb (patch)
treec0bdae68fe533412378e8256e373d1ca4de220cf /bin
parentCheck is os.statvfs() is implemented before trying to us it. (diff)
downloadportage-multirepo-e753a4f9df91501ad4b66a0554476b053a1acbdb.tar.gz
portage-multirepo-e753a4f9df91501ad4b66a0554476b053a1acbdb.tar.bz2
portage-multirepo-e753a4f9df91501ad4b66a0554476b053a1acbdb.zip
Bug #214499 - When compiler flags are unset, many packages will substitute
their own implicit flags. For uniformity, use an empty string as the default. svn path=/main/trunk/; revision=9503
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index b522f8db..e773c555 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -273,6 +273,12 @@ export LIBOPTIONS="-m0644"
export DIROPTIONS="-m0755"
export MOPREFIX=${PN}
+# When compiler flags are unset, many packages will substitute their own
+# implicit flags. For uniformity, use an empty string as the default.
+[ "${CFLAGS-unset}" == "unset" ] && export CFLAGS=""
+[ "${CXXFLAGS-unset}" == "unset" ] && export CXXFLAGS=""
+[ "${LDFLAGS-unset}" == "unset" ] && export LDFLAGS=""
+
check_KV() {
if [ -z "${KV}" ]; then
eerror ""