From: Gustavo Zacarias Date: Mon, 12 Aug 2013 13:15:45 +0000 (-0300) Subject: bash: fix static build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e0f48c83158655ae737c89df618c5c79294f682;p=buildroot.git bash: fix static build The static build needs some trickery, so make it happen. Fixes: http://autobuild.buildroot.net/results/2b12868f8297a96d7abf7fcf526ca5eace73d66d/ Signed-off-by: Gustavo Zacarias Signed-off-by: Thomas Petazzoni --- diff --git a/package/bash/bash.mk b/package/bash/bash.mk index d51e2037dd..efd2334ad0 100644 --- a/package/bash/bash.mk +++ b/package/bash/bash.mk @@ -16,6 +16,11 @@ BASH_CONF_ENV += \ bash_cv_func_sigsetjmp=present \ bash_cv_printf_a_format=yes +# The static build needs some trickery +ifeq ($(BR2_PREFER_STATIC_LIB),y) +BASH_CONF_OPT += --enable-static-link --without-bash-malloc +endif + # Make sure we build after busybox so that /bin/sh links to bash ifeq ($(BR2_PACKAGE_BUSYBOX),y) BASH_DEPENDENCIES += busybox