summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-11-04 20:07:27 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-11-04 20:07:27 +0000
commit74686ff5738ed0443ab68bd1490910c8576a9c17 (patch)
treeab914fcd55ec8519c0379390a858cca4db8d7041 /make
parent366f85bcf4ee29b1e410ef3c53fbe140c71f1293 (diff)
downloadlh-bootstrap-74686ff5738ed0443ab68bd1490910c8576a9c17.tar.xz
fix bearssl, update musl, add socklog
Diffstat (limited to 'make')
-rwxr-xr-xmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/make b/make
index 3c958ef..6c767ea 100755
--- a/make
+++ b/make
@@ -23,6 +23,11 @@ USE_TAP=${USE_TAP:-false} # TODO: backend specific, move to backends
USE_VIRTIO_NETWORK=${USE_VIRTIO_NETWORK:-false} # allow end user to choose
USE_VIRTIO_DISK=${USE_VIRTIO_DISK:-false}
+# Properly build musl and friends if the default toolchain produces PIE
+if ${BUILD_BUILD_CC} -dM -E - < /dev/null | grep -qF __PIE__ ; then
+ BUILD_BUILD_CC="$BUILD_BUILD_CC -fPIC"
+fi
+
# By default, give up if all services aren't up 30 seconds after boot.
# This allows shutting down the machine (via s6-poweroff) even if the
# network fails to start, for instance.