blob: 9ed03858d42bc4dbf0660b35e0eb112aa11badfb [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001From 840fda32c82550259d02a7a56a78a9c05162b1a1 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Wed, 8 May 2019 16:10:29 +0800
4Subject: [PATCH] Makefile: fix Issue36464 (parallel build race problem)
5
6When using make -j with the 'install' target, it's possible for altbininstall
7(which normally creates BINDIR) and libainstall (which doesn't, though it
8installs python-config there) to race, resulting in a failure due to
9attempting to install python-config into a nonexistent BINDIR. Ensure it also
10exists in the libainstall target.
11
William A. Kennington IIIac69b482021-06-02 12:28:27 -070012Upstream-Status: Backport [https://github.com/python/cpython/commit/a25c46bd7dd47a2f95b32d17ee2f66de214892c6]
Brad Bishopc342db32019-05-15 21:57:59 -040013Signed-off-by: Changqing Li <changqing.li@windriver.com>
14---
15 Makefile.pre.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/Makefile.pre.in b/Makefile.pre.in
19index 15f3687..7e9f173 100644
20--- a/Makefile.pre.in
21+++ b/Makefile.pre.in
22@@ -1456,7 +1456,7 @@ LIBPL= @LIBPL@
23 LIBPC= $(LIBDIR)/pkgconfig
24
25 libainstall: @DEF_MAKE_RULE@ python-config
26- @for i in $(LIBDIR) $(LIBPL) $(LIBPC); \
27+ @for i in $(LIBDIR) $(LIBPL) $(LIBPC) $(BINDIR); \
28 do \
29 if test ! -d $(DESTDIR)$$i; then \
30 echo "Creating directory $$i"; \
31--
322.7.4
33