]>
Commit | Line | Data |
---|---|---|
8dfd59d1 | 1 | ################################################################################ |
77bf6fb0 EA |
2 | # |
3 | # bash | |
4 | # | |
8dfd59d1 | 5 | ################################################################################ |
77bf6fb0 | 6 | |
3f5061a0 | 7 | BASH_VERSION = 4.3 |
3404ad7c | 8 | BASH_SITE = $(BR2_GNU_MIRROR)/bash |
350bd00e GZ |
9 | # Build after since bash is better than busybox shells |
10 | BASH_DEPENDENCIES = ncurses readline host-bison \ | |
11 | $(if $(BR2_PACKAGE_BUSYBOX),busybox) | |
aaffd209 | 12 | BASH_CONF_OPTS = --with-installed-readline |
ef2d2600 AVEM |
13 | BASH_LICENSE = GPLv3+ |
14 | BASH_LICENSE_FILES = COPYING | |
15 | ||
3f5061a0 | 16 | BASH_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). | |
26 | BASH_MAKE = $(MAKE1) | |
27 | ||
9e0f48c8 GZ |
28 | # The static build needs some trickery |
29 | ifeq ($(BR2_PREFER_STATIC_LIB),y) | |
aaffd209 | 30 | BASH_CONF_OPTS += --enable-static-link --without-bash-malloc |
9e0f48c8 GZ |
31 | endif |
32 | ||
350bd00e | 33 | # Make /bin/sh -> bash (no other shell, better than busybox shells) |
3404ad7c GZ |
34 | define 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 |
38 | endef |
39 | ||
e1502ebc | 40 | $(eval $(autotools-package)) |