[PATCH] libgloss: don't ignore errors in subdir build/installs

Mike Frysinger vapier@gentoo.org
Tue Dec 21 13:18:00 GMT 2010


Currently, the status of subdirs targets when building or installing are 
ignored by the top level libgloss Makefile.  So errors in arch subdirs don't 
get properly caught and people only notice when their installed compiler 
doesn't work quite right.

2010-12-20  Mike Frysinger  <vapier@gentoo.org>

	* Makefile.in (stmp-bsp): Exit when subdirs fail.
	(install): Likewise.

--- libgloss/Makefile.in	19 Jun 2009 18:18:00 -0000	1.6
+++ libgloss/Makefile.in	20 Dec 2010 21:50:20 -0000
@@ -104,7 +104,7 @@ stmp-bsp: force
 	for dir in .. ${SUBDIRS}; do \
 	  if [ x$$dir != x.. ]; then \
 	    if [ -d $$dir ]; then \
-	      (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \
+	      (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)) || exit $$?; \
 	    else true; fi; \
 	  else true; fi; \
 	done
@@ -115,7 +115,7 @@ install: force
 	for dir in .. ${SUBDIRS}; do \
 	  if [ x$$dir != x.. ]; then \
 	    if [ -d $$dir ]; then \
-	      (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \
+	      (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install) || exit $$?; \
 	    else true; fi; \
 	  else true; fi; \
 	done
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/newlib/attachments/20101221/85eedb4b/attachment.sig>


More information about the Newlib mailing list