GNOME Bugzilla – Bug 753691
make install -j2 fails when building for MinGW
Last modified: 2015-08-20 03:41:49 UTC
This problem was reported by an Arch Linux user (Alister.Hood): https://aur.archlinux.org/packages/mingw-w64-gtk2/ In gdk/Makefile.am, gtk/Makefile.am, modules/other/gail/libgail-util/Makefile.am, install-def-file is used to install .def files to $(DESTDIR)$(libdir). However, install-def-file is listed in install-data-local, not install-exec-hook, so it is possible for install-def-file to be executed before install-exec. This causes install-def-file to fail because $(DESTDIR)$(libdir) does not exist. I think the same problem can also happen for install-ms-lib although it is not tested. The possible solution may be: 1. Move them to install-exec-hook. 2. Run $(mkinstalldirs) before $(INSTALL).
Created attachment 309518 [details] [review] Makefiles: Fix parallel installation for MinGW Make sure that the destination exists before installing files.
Review of attachment 309518 [details] [review]: sure, looks fine
Attachment 309518 [details] pushed as 46c28bd - Makefiles: Fix parallel installation for MinGW