I have compiled Bash 3.2.0 for x86 and when doing so it includes the built-in 'disown' feature. However, when cross-compiling for arm it is disappointingly absent. I have modified the OpenWRT makefile to try and compensate but have thus far been unsuccessful.
I have tried:
define Build/Configure
$(call Build/Configure/Default, \
--enable-disown=yes \
--with-disown=yes \
--disable-restricted \
--without-bash-malloc \
--bindir=/bin \
)
endef
as well as
define Build/Configure
(cd $(PKG_BUILD_DIR); \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS) \
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
LD="$(TARGET_CC)" \
LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--with-disown=yes \
)
endef
Any suggestion would be most appreciated!