Ports: Make sure Bash loads its built-in commands statically

Bash's configure script is checking whether the system has dlopen().
We do, but it doesn't actually work (yet). So patch the check out.
This commit is contained in:
Sergey Bugaev 2019-11-19 17:39:31 +03:00 committed by Andreas Kling
parent 63cef4bd5f
commit 47326042c5
Notes: sideshowbarker 2024-07-19 11:08:41 +09:00

View File

@ -0,0 +1,63 @@
--- a/configure.ac 2019-01-02 17:39:11.000000000 +0300
+++ b/configure.ac 2019-11-19 17:18:54.094241509 +0300
@@ -1164,25 +1164,9 @@
fi
#
-# Shared object configuration section. These values are generated by
-# ${srcdir}/support/shobj-conf
-#
-if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
-then
- AC_MSG_CHECKING(shared object configuration for loadable builtins)
- eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
- AC_SUBST(SHOBJ_CC)
- AC_SUBST(SHOBJ_CFLAGS)
- AC_SUBST(SHOBJ_LD)
- AC_SUBST(SHOBJ_LDFLAGS)
- AC_SUBST(SHOBJ_XLDFLAGS)
- AC_SUBST(SHOBJ_LIBS)
- AC_SUBST(SHOBJ_STATUS)
- AC_MSG_RESULT($SHOBJ_STATUS)
-else
- SHOBJ_STATUS=unsupported
- AC_SUBST(SHOBJ_STATUS)
-fi
+# Shared object configuration section.
+SHOBJ_STATUS=unsupported
+AC_SUBST(SHOBJ_STATUS)
# try to create a directory tree if the source is elsewhere
# this should be packaged into a script accessible via ${srcdir}/support
--- a/configure 2019-01-02 17:43:31.000000000 +0300
+++ b/configure 2019-11-19 17:18:56.126259727 +0300
@@ -16367,27 +16367,8 @@
fi
#
-# Shared object configuration section. These values are generated by
-# ${srcdir}/support/shobj-conf
-#
-if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
-then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
-$as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
- eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
-
-
-
-
-
-
-
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
-$as_echo "$SHOBJ_STATUS" >&6; }
-else
- SHOBJ_STATUS=unsupported
-
-fi
+# Shared object configuration section.
+SHOBJ_STATUS=unsupported
# try to create a directory tree if the source is elsewhere
# this should be packaged into a script accessible via ${srcdir}/support