From f9c3864711d0de4e7305e3509d339f0713efa859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Mon, 8 Feb 2016 14:04:33 +0100 Subject: - Explicitly pass {C,LD}FLAGS_PATH to the runtime (ntapi, psxscl, etc.) build scripts; everything now goes into $PREFIX_NATIVE except for the cross compiler and its dependencies, which go into $PREFIX_TARGET. - Replaced specific PREFIX variables w/ generic per-build level CFLAGS. - Merged 204.psxscl.build into pkg.build. - Generalised patching procedure into build.subr. --- build.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 6808e449..eb219701 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,7 @@ #!/bin/sh { +#clear_env_with_except HOME PATH SHELL TERM USER; unset AR ARFLAGS CC CFLAGS CXX CXXFLAGS LD LDFLAGS; . ./build.vars; . ./build.subr; check_path_vars PREFIX PREFIX_NATIVE WORKDIR; @@ -24,6 +25,7 @@ for BUILD_LVL in 0 1 2 3; do (set -o errexit -- $(split . ${BUILD_SCRIPT_FNAME%.build}); \ SCRIPT_FNAME=${BUILD_SCRIPT_FNAME}; _pwd=$(pwd); \ export CFLAGS="$(eval echo \${CFLAGS_LVL${BUILD_LVL}})"; \ + export PREFIX_LVL="$(eval echo \${PREFIX_LVL${BUILD_LVL}})"; \ cd ${WORKDIR}; . ${_pwd}/build.subr; \ [ -f ${_pwd}/${SCRIPT_FNAME%.build}.vars ] && \ . ${_pwd}/${SCRIPT_FNAME%.build}.vars; \ -- cgit v1.2.3