Commit 9523996b authored by gsell's avatar gsell
Browse files

lib/libem.bash: bugfix in environment cleanup

parent 99bc0f1e
......@@ -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=()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment