[PATCH] Cygwin: create install dir for libs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Cygwin: create install dir for libs

cygwin-patches mailing list
This fixes a race in parallel installs.
---
 winsup/cygwin/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index fac81759e..ea0243033 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -600,7 +600,7 @@ install: install-libs install-headers install-man install-ldif install_target \
 uninstall: uninstall-libs uninstall-headers uninstall-man
 
 install-libs: $(TARGET_LIBS)
- @$(MKDIRP) $(DESTDIR)$(bindir)
+ @$(MKDIRP) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/lib
  $(INSTALL_PROGRAM) $(TEST_DLL_NAME) $(DESTDIR)$(bindir)/$(DLL_NAME); \
  for i in $^; do \
     $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/lib/`basename $$i` ; \
--
2.28.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Cygwin: create install dir for libs

Corinna Vinschen-2
On Aug 27 09:02, David McFarland via Cygwin-patches wrote:

> This fixes a race in parallel installs.
> ---
>  winsup/cygwin/Makefile.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
> index fac81759e..ea0243033 100644
> --- a/winsup/cygwin/Makefile.in
> +++ b/winsup/cygwin/Makefile.in
> @@ -600,7 +600,7 @@ install: install-libs install-headers install-man install-ldif install_target \
>  uninstall: uninstall-libs uninstall-headers uninstall-man
>  
>  install-libs: $(TARGET_LIBS)
> - @$(MKDIRP) $(DESTDIR)$(bindir)
> + @$(MKDIRP) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/lib
>   $(INSTALL_PROGRAM) $(TEST_DLL_NAME) $(DESTDIR)$(bindir)/$(DLL_NAME); \
>   for i in $^; do \
>      $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/lib/`basename $$i` ; \
> --
> 2.28.0

Pushed.

Thanks,
Corinna