From: Zac Medico Date: Mon, 24 Mar 2008 23:14:37 +0000 (-0000) Subject: Bug #214499 - When compiler flags are unset, many packages will substitute X-Git-Tag: v2.2_pre6~336 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e753a4f9df91501ad4b66a0554476b053a1acbdb;p=portage.git 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 --- 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 ""