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 /sub/dropbear | |
parent | 573817bc72b5f3273bcf2bca6e2d98e105c976b5 (diff) | |
download | lh-bootstrap-b6da3ac2d9d45831605d6d83c5fdc94987dc5393.tar.xz |
Allow for static and dynamic builds
Diffstat (limited to 'sub/dropbear')
-rw-r--r-- | sub/dropbear/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sub/dropbear/Makefile b/sub/dropbear/Makefile index a8def6d..b3b791a 100644 --- a/sub/dropbear/Makefile +++ b/sub/dropbear/Makefile @@ -1,6 +1,7 @@ DROPBEAR_VERSION ?= 2019.78 - +DROPBEAR_CONF_STATIC := $(if $(filter true,$(BUILD_HOST_STATIC)),--enable-static,) +DROPBEAR_MAKE_STATIC := $(if $(filter true,$(BUILD_HOST_STATIC)),-static,) clean-dropbear: rm -f $(OUTPUT)/build-host/.lh_dropbear_* @@ -22,7 +23,7 @@ $(OUTPUT)/build-host/.lh_dropbear_patched: $(OUTPUT)/build-host/.lh_dropbear_cop exec setuidgid $(NORMALUSER) s6-touch $@ $(OUTPUT)/build-host/.lh_dropbear_configured: $(OUTPUT)/build-host/.lh_dropbear_patched | $(OUTPUT)/build-build/.lh_skarnet_installed - exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-host/dropbear-$(DROPBEAR_VERSION) export ARCH $(KERNEL_ARCH) export CC "$(BUILD_HOST_CC)" export LDFLAGS '-s -static' ./configure --host=$(TRIPLE) --prefix=/opt/dropbear-$(DROPBEAR_VERSION) --disable-syslog --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx --disable-pututline --disable-pututxline --without-pam --enable-bundled-libtom --disable-zlib --enable-static + exec setuidgid $(NORMALUSER) cd $(OUTPUT)/build-host/dropbear-$(DROPBEAR_VERSION) export ARCH $(KERNEL_ARCH) export CC "$(BUILD_HOST_CC)" export LDFLAGS "-s $(DROPBEAR_MAKE_STATIC)" ./configure --host=$(TRIPLE) --prefix=/opt/dropbear-$(DROPBEAR_VERSION) --disable-syslog --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx --disable-pututline --disable-pututxline --without-pam --enable-bundled-libtom --disable-zlib $(DROPBEAR_CONF_STATIC) exec setuidgid $(NORMALUSER) s6-touch $@ $(OUTPUT)/build-host/.lh_dropbear_built: $(OUTPUT)/build-host/.lh_dropbear_configured | $(OUTPUT)/build-build/.lh_skarnet_installed |