bash.mk 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ################################################################################
  2. #
  3. # bash
  4. #
  5. ################################################################################
  6. BASH_VERSION = 4.3
  7. BASH_SITE = $(BR2_GNU_MIRROR)/bash
  8. # Build after since bash is better than busybox shells
  9. BASH_DEPENDENCIES = ncurses readline host-bison \
  10. $(if $(BR2_PACKAGE_BUSYBOX),busybox)
  11. BASH_CONF_OPTS = --with-installed-readline
  12. BASH_LICENSE = GPLv3+
  13. BASH_LICENSE_FILES = COPYING
  14. BASH_CONF_ENV += \
  15. ac_cv_rl_prefix="$(STAGING_DIR)" \
  16. ac_cv_rl_version="$(READLINE_VERSION)" \
  17. bash_cv_job_control_missing=present \
  18. bash_cv_sys_named_pipes=present \
  19. bash_cv_func_sigsetjmp=present \
  20. bash_cv_printf_a_format=yes
  21. # Parallel build sometimes fails because some of the generator tools
  22. # are built twice (i.e. while executing).
  23. BASH_MAKE = $(MAKE1)
  24. # The static build needs some trickery
  25. ifeq ($(BR2_PREFER_STATIC_LIB),y)
  26. BASH_CONF_OPTS += --enable-static-link --without-bash-malloc
  27. endif
  28. # Make /bin/sh -> bash (no other shell, better than busybox shells)
  29. define BASH_INSTALL_TARGET_CMDS
  30. $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
  31. DESTDIR=$(TARGET_DIR) exec_prefix=/ install
  32. rm -f $(TARGET_DIR)/bin/bashbug
  33. endef
  34. $(eval $(autotools-package))