Skip to contentSkip to conversation

bash: fix static build

PATCH New Gustavo Zacarias 2 participants 2 messages Aug 12, 2013 – Aug 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bash: fix static build

The static build needs some trickery, so make it happen. Fixes:
http://autobuild.buildroot.net/results/2b12868f8297a96d7abf7fcf526ca5eace73d66d/

---
 package/bash/bash.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/bash/bash.mk +5 -0
index d51e203..efd2334 100644
@@ -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
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 1/1 bash: fix static build

Dear Gustavo Zacarias,

Quoted 7 lines · Gustavo Zacarias

The static build needs some trickery, so make it happen. Fixes:
http://autobuild.buildroot.net/results/2b12868f8297a96d7abf7fcf526ca5eace73d66d/

---
 package/bash/bash.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied, thanks.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com