]> Git Repo - buildroot-mgba.git/blame - package/bash/bash.mk
system: add option to choose what /bin/sh points to
[buildroot-mgba.git] / package / bash / bash.mk
CommitLineData
8dfd59d1 1################################################################################
77bf6fb0
EA
2#
3# bash
4#
8dfd59d1 5################################################################################
77bf6fb0 6
3f5061a0 7BASH_VERSION = 4.3
3404ad7c 8BASH_SITE = $(BR2_GNU_MIRROR)/bash
350bd00e
GZ
9# Build after since bash is better than busybox shells
10BASH_DEPENDENCIES = ncurses readline host-bison \
11 $(if $(BR2_PACKAGE_BUSYBOX),busybox)
aaffd209 12BASH_CONF_OPTS = --with-installed-readline
ef2d2600
AVEM
13BASH_LICENSE = GPLv3+
14BASH_LICENSE_FILES = COPYING
15
3f5061a0 16BASH_CONF_ENV += \
7a95111e 17 ac_cv_rl_prefix="$(STAGING_DIR)" \
3f5061a0
GZ
18 ac_cv_rl_version="$(READLINE_VERSION)" \
19 bash_cv_job_control_missing=present \
20 bash_cv_sys_named_pipes=present \
21 bash_cv_func_sigsetjmp=present \
22 bash_cv_printf_a_format=yes
3404ad7c 23
339868d2
AV
24# Parallel build sometimes fails because some of the generator tools
25# are built twice (i.e. while executing).
26BASH_MAKE = $(MAKE1)
27
9e0f48c8
GZ
28# The static build needs some trickery
29ifeq ($(BR2_PREFER_STATIC_LIB),y)
aaffd209 30BASH_CONF_OPTS += --enable-static-link --without-bash-malloc
9e0f48c8
GZ
31endif
32
350bd00e 33# Make /bin/sh -> bash (no other shell, better than busybox shells)
3404ad7c
GZ
34define BASH_INSTALL_TARGET_CMDS
35 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
36 DESTDIR=$(TARGET_DIR) exec_prefix=/ install
37 rm -f $(TARGET_DIR)/bin/bashbug
3404ad7c
GZ
38endef
39
e1502ebc 40$(eval $(autotools-package))
This page took 0.654192 seconds and 4 git commands to generate.