From 3dafb81bf5d225a028911f114a5121b0f9699a84 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 26 Mar 2008 16:54:19 +0000 Subject: [PATCH] Move the default empty compiler flag settings from ebuild.sh to make.globals (bug #214499). svn path=/main/trunk/; revision=9511 --- bin/ebuild.sh | 6 ------ cnf/make.globals | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index e773c5558..b522f8db0 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -273,12 +273,6 @@ 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 "" diff --git a/cnf/make.globals b/cnf/make.globals index 0fd503c4b..36d8591ae 100644 --- a/cnf/make.globals +++ b/cnf/make.globals @@ -12,6 +12,11 @@ # ** USE, CONFIG_*, and FEATURES are incremental ** # *************************************************** +# When compiler flags are unset, many packages will substitute their own +# implicit flags. For uniformity, use an empty string as the default. +CFLAGS="" +CXXFLAGS="" +LDFLAGS="" # Default rsync mirror SYNC="rsync://rsync.gentoo.org/gentoo-portage" -- 2.26.2