diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-01-23 16:31:46 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-01-23 16:31:46 +0000 |
commit | b6da3ac2d9d45831605d6d83c5fdc94987dc5393 (patch) | |
tree | a96af3567da5f6c8f70f8368b8ff82c6f725a415 /make | |
parent | 573817bc72b5f3273bcf2bca6e2d98e105c976b5 (diff) | |
download | lh-bootstrap-b6da3ac2d9d45831605d6d83c5fdc94987dc5393.tar.xz |
Allow for static and dynamic builds
Diffstat (limited to 'make')
-rwxr-xr-x | make | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |