diff --git a/recipes/libs/readline/recipe.toml b/recipes/libs/readline/recipe.toml index 25a830e1..208e17e6 100644 --- a/recipes/libs/readline/recipe.toml +++ b/recipes/libs/readline/recipe.toml @@ -12,8 +12,10 @@ DYNAMIC_INIT cookbook_configure OS=$(echo "${TARGET}" | cut -d - -f3) if [ "${OS}" = "redox" ]; then +if [ "${COOKBOOK_DYNAMIC}" = "1" ]; then ln -s "libhistory.so.8" "${COOKBOOK_STAGE}"/usr/lib/libhistory.so ln -s "libreadline.so.8" "${COOKBOOK_STAGE}"/usr/lib/libreadline.so patchelf --add-needed libncursesw.so "${COOKBOOK_STAGE}/usr/lib/libreadline.so.8" fi +fi """ diff --git a/recipes/terminal/bash/recipe.toml b/recipes/terminal/bash/recipe.toml index 81e811c4..ff070ce3 100644 --- a/recipes/terminal/bash/recipe.toml +++ b/recipes/terminal/bash/recipe.toml @@ -9,12 +9,15 @@ dependencies = [ ] script = """ DYNAMIC_INIT +export CPPFLAGS+=" -DHAVE_STRCHRNUL" COOKBOOK_CONFIGURE_FLAGS+=( bash_cv_func_sigsetjmp=no ac_cv_func_getrlimit=no ac_cv_func_dlopen=no ac_cv_func_dlclose=no bash_cv_getenv_redef=no + bash_cv_getcwd_malloc=yes + bash_cv_func_strchrnul_works=yes --with-bash-malloc=no --with-installed-readline=yes )