summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh6
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 ""