make.sh: Don't export loads of variables in the main script

We clear and reset the environment when we launch any build commands and
therefore don't need to do this here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-05 10:47:12 +00:00
parent e7601c7a93
commit dfb583fee3

View File

@@ -44,6 +44,7 @@ ZSTD_OPT="-T0 --ultra -22"
#
###############################################################################
LC_ALL=POSIX
PS1='\u:\w$ '
# Remember if the shell is interactive or not
@@ -432,11 +433,6 @@ prepareenv() {
# Set umask
umask 022
# Setup environment
LC_ALL=POSIX
export LC_ALL CFLAGS CXXFLAGS DEFAULT_PARALLELISM RUSTFLAGS NINJAJOBS
unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
# Make some extra directories
mkdir -p "${CCACHE_DIR}"
mkdir -p "${BUILD_DIR}/${TOOLS_DIR}"