diff options
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | build.subr | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -5,6 +5,8 @@ unset AR ARFLAGS CC CFLAGS CXX CXXFLAGS LD LDFLAGS; . ./build.vars; . ./build.subr; check_path_vars PREFIX PREFIX_NATIVE WORKDIR; check_prereqs git make openssl sed sort tar tr wget; +set_env_vars "" LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS \ +LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL; log_msg info "Build started by ${BUILD_USER:=${USER}}@${BUILD_HNAME:=$(hostname)} at ${BUILD_DATE:=$(date %Y-%m-%d-%H-%M-%S)}."; #trap (set -o errexit; mkdir -p ${PREFIX} ${WORKDIR}); @@ -146,7 +146,11 @@ set_build_dir() { set_env_vars() { _val=${1}; shift; while [ $# -ge 1 ]; do - export "${1}=${_val}"; shift; + if [ -z "${_val}" ]; then + unset ${1}; + else + export "${1}=${_val}"; + fi; shift; done; unset _val; }; |