summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-31 18:01:34 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-31 18:01:34 +0000
commitaaef3ede8287d966b1fbf1b8241ebe9c777e774c (patch)
tree637899ff42ff51ea2a74e88aee0f84c84c13d794 /make
parentbe6792557c070df3ec3baaf940d5628ab3094b93 (diff)
downloadlh-bootstrap-aaef3ede8287d966b1fbf1b8241ebe9c777e774c.tar.xz
Small incremental build fixes (50)
Diffstat (limited to 'make')
-rwxr-xr-xmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/make b/make
index 4e42a27..4030480 100755
--- a/make
+++ b/make
@@ -15,14 +15,20 @@ if test -z "$NORMALUSER" || test -z "$ROOTFS_SIZE" || test -z "$TRIPLE" ; then
fi
-WD=$(pwd)
-BUILD_BUILD_CC=${BUILD_BUILD_CC:-gcc}
+WD=`pwd`
OUTPUT=${OUTPUT:-$WD/output}
+if test $OUTPUT = ${OUTPUT#/} ; then
+ OUTPUT="$WD/$OUTPUT"
+fi
+
+BUILD_BUILD_CC=${BUILD_BUILD_CC:-gcc}
BUILD_HOST_CC="$TRIPLE-${CROSS_CC:-gcc}"
ROOTFS_SIZE=${ROOTFS_SIZE:-1024M}
RWFS_SIZE=${RWFS_SIZE:-512M}
USERFS_SIZE=${USERFS_SIZE:-512M}
+
+
if test -z "$BUILD_HOST_STATIC" ; then
case "$TRIPLE" in
*-*-musl*) BUILD_HOST_STATIC=true ;;