summaryrefslogtreecommitdiff
blob: 0ee04910629731c84619ac1d6681da5db8e75c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
http://bugs.gentoo.org/189671
http://lists.gnu.org/archive/html/bug-bash/2007-08/msg00081.html

--- bash-3.2/Makefile.in
+++ bash-3.2/Makefile.in
@@ -584,7 +584,9 @@
 	@( { test "${RL_LIBDIR}" = "${libdir}" && exit 0; } || \
 		cd ${RL_LIBDIR} && $(MAKE) $(MFLAGS) libreadline.a) || exit 1
 
-$(HISTORY_LIBRARY): config.h $(HISTORY_SOURCE)
+# prevent parallel build race conditions in the lib/readline/ subdir
+# by depending on libreadline.a when applicable
+$(HISTORY_LIBRARY): config.h $(HISTORY_SOURCE) $(READLINE_DEP)
 	@echo making $@ in ${HIST_LIBDIR}
 	@( { test "${HIST_LIBDIR}" = "${libdir}" && exit 0; } || \
 		cd ${HIST_LIBDIR} && $(MAKE) $(MFLAGS) libhistory.a) || exit 1