From aaef3ede8287d966b1fbf1b8241ebe9c777e774c Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 31 Jan 2020 18:01:34 +0000 Subject: Small incremental build fixes (50) --- make | 10 ++++++++-- 1 file 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 ;; -- cgit v1.2.3