lib/libem.bash: bugfix in environment cleanup

This commit is contained in:
2015-03-20 17:27:55 +01:00
parent 99bc0f1e67
commit 9523996b8a

View File

@@ -268,9 +268,11 @@ function _write_build_dependencies() {
done
}
# setup general environment
function _setup_env1() {
local varname=''
##############################################################################
#
# cleanup environment
#
em.cleanup_env() {
C_INCLUDE_PATH=''
CPLUS_INCLUDE_PATH=''
@@ -284,7 +286,14 @@ function _setup_env1() {
CXXFLAGS=''
LIBS=''
LDFLAGS=''
}
##############################################################################
#
# load default versions
#
_setup_env1() {
local varname=''
while read _name _version; do
[[ -z ${_name} ]] && continue
[[ -z ${_version} ]] && continue
@@ -669,6 +678,8 @@ ENVIRONMENT_ARGS=''
dry_run='no'
bootstrap='no'
em.cleanup_env
# array collecting all modules specified on the command line via '--with=module'
with_modules=()