summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-23 16:31:46 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-23 16:31:46 +0000
commitb6da3ac2d9d45831605d6d83c5fdc94987dc5393 (patch)
treea96af3567da5f6c8f70f8368b8ff82c6f725a415 /make
parent573817bc72b5f3273bcf2bca6e2d98e105c976b5 (diff)
downloadlh-bootstrap-b6da3ac2d9d45831605d6d83c5fdc94987dc5393.tar.xz
Allow for static and dynamic builds
Diffstat (limited to 'make')
-rwxr-xr-xmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/make b/make
index f69d033..eaf93e6 100755
--- a/make
+++ b/make
@@ -20,6 +20,13 @@ BUILD_BUILD_CC=${BUILD_BUILD_CC:-gcc}
OUTPUT=${OUTPUT:-$WD/output}
BUILD_HOST_CC="$TRIPLE-${CROSS_CC:-gcc}"
+if test -z "$BUILD_HOST_STATIC" ; then
+ case "$TRIPLE" in
+ *-*-musl*) BUILD_HOST_STATIC=true ;;
+ *) BUILD_HOST_STATIC=false ;;
+ esac
+fi
+
if test -n "$CROSS_BASE" ; then
crossenv=""
else