From e753a4f9df91501ad4b66a0554476b053a1acbdb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 24 Mar 2008 23:14:37 +0000 Subject: 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 --- bin/ebuild.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 "" -- cgit v1.2.3-1-g7c22