This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch, mips] Fix parallel build on MIPS
- From: "Steve Ellcey " <sellcey at mips dot com>
- To: <newlib at sourceware dot org>
- Date: Fri, 30 Aug 2013 08:04:02 -0700
- Subject: [patch, mips] Fix parallel build on MIPS
- Authentication-results: sourceware.org; auth=none
I have noticed for a while that a parallel make on mips, when building the
install target, did not work. I finally dug into the problem and tracked
it down to the mips specific libgloss Makefile.in. This change makes it
match other Makefiles like epiphany, libnosys, and others. It allows me
to do builds with the make -j option when doing 'make install'
OK to checkin?
Steve Ellcey
sellcey@mips.com
2013-08-30 Steve Ellcey <sellcey@mips.com>
* mips/Makefile.in (install): Add mkdir, fix install command.
diff --git a/libgloss/mips/Makefile.in b/libgloss/mips/Makefile.in
index 2042e48..b9cb825 100644
--- a/libgloss/mips/Makefile.in
+++ b/libgloss/mips/Makefile.in
@@ -202,7 +202,8 @@ distclean maintainer-clean realclean: clean
.PHONY: install info install-info clean-info
install:
@for file in $(CRT0) $(PCRT0) $(BSP); do \
- $(INSTALL_DATA) $${file} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
+ mkdir -p $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}; \
+ $(INSTALL_DATA) $${file} $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${file}; \
done
@for script in ${SCRIPTS}; do\
$(INSTALL_DATA) ${srcdir}/$${script}.ld $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$${script}.ld; \