diff options
Diffstat (limited to 'app-shells/bash/files/bash-3.0-force-static-linking.patch')
-rw-r--r-- | app-shells/bash/files/bash-3.0-force-static-linking.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-3.0-force-static-linking.patch b/app-shells/bash/files/bash-3.0-force-static-linking.patch new file mode 100644 index 0000000..6a3f165 --- /dev/null +++ b/app-shells/bash/files/bash-3.0-force-static-linking.patch @@ -0,0 +1,42 @@ +Make sure linking against included readline always works. + +http://bugs.gentoo.org/100138 + +--- configure ++++ configure +@@ -477,8 +477,8 @@ + #define READLINE 1 + _ACEOF + +- READLINE_LIB=-lreadline + if test "$opt_with_installed_readline" != "no" ; then ++ READLINE_LIB=-lreadline + case "$opt_with_installed_readline" in + yes) RL_INCLUDE= ;; + *) case "$RL_INCLUDEDIR" in +@@ -490,6 +490,7 @@ + READLINE_DEP= + else + RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' ++ READLINE_LIB='$(RL_LIBDIR)/libreadline.a' + READLINE_DEP='$(READLINE_LIBRARY)' + fi + else +@@ -503,8 +504,8 @@ + _ACEOF + + fi +- HISTORY_LIB=-lhistory + if test "$opt_with_installed_readline" != "no"; then ++ HISTORY_LIB=-lhistory + HIST_LIBDIR=$RL_LIBDIR + HISTORY_DEP= + case "$opt_with_installed_readline" in +@@ -517,6 +518,7 @@ + esac + else + HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' ++ HISTORY_LIB='$(HIST_LIBDIR)/libhistory.a' + HISTORY_DEP='$(HISTORY_LIBRARY)' + fi + else |