diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-03-24 23:14:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-03-24 23:14:37 +0000 |
commit | e753a4f9df91501ad4b66a0554476b053a1acbdb (patch) | |
tree | c0bdae68fe533412378e8256e373d1ca4de220cf | |
parent | 488570fb356ed591c16fce8d703f669f9bc62146 (diff) | |
download | portage-e753a4f9df91501ad4b66a0554476b053a1acbdb.tar.gz portage-e753a4f9df91501ad4b66a0554476b053a1acbdb.tar.bz2 portage-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
-rwxr-xr-x | bin/ebuild.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index b522f8db0..e773c5558 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 "" |