Fix early-preseed (and environment variables generally)

This commit is contained in:
fosslinux 2024-05-10 12:18:24 +10:00
parent f5eb51c2cc
commit 6302bb6d20
2 changed files with 12 additions and 2 deletions

View file

@ -8,7 +8,7 @@
src_compile() {
cd lex
make -f Makefile.mk CC=tcc AR=tcc\ -ar LDFLAGS=-static RANLIB=true
make -f Makefile.mk CC=tcc AR="tcc -ar" LDFLAGS=-static RANLIB=true LIBDIR="${LIBDIR}"
cd ..
}
@ -18,4 +18,3 @@ src_install() {
install lex/libl.a "${DESTDIR}${LIBDIR}"
install -m 644 lex/ncform "${DESTDIR}${LIBDIR}/lex"
}

View file

@ -21,4 +21,15 @@ export SHELL=/usr/bin/bash
DESTDIR=/tmp/destdir
EOF
# The following values are set up in the kaem environment.
# As these are then passed through to the bash shell, they are considered
# automatically exported variables. We don't want them exported.
unset PREFIX
unset BINDIR
unset LIBDIR
unset INCDIR
unset SRCDIR
unset TMPDIR
unset DISTFILES
. /steps/env