I'm building with the rather verbose 

  make CROSS="${ARCH}-" \
    KERNEL_HEADERS="${CROSS}/include" \
    PREFIX="${CROSS}/" \
    RUNTIME_PREFIX=/ \
    DEVEL_PREFIX=/ $TARGET

So I want to do "all install" as my target rather than repeating the line.  
Unfortunately, with a -j higher than 1, the install starts in parallel with 
the all and the build breaks.

As a result, I did the following patch so i can just do "install" and "all" is 
implied, and then -j works out nicely without me having to repeat lots of 
make variables.

I don't think there are any downsides, but I thought I'd post it publicly 
before merging it.

Rob
The dependencies aren't quite SMP safe if you "make all install".

--- uClibc/Makefile.in	2008-08-25 11:25:04.000000000 -0500
+++ uClibc.bak/Makefile.in	2008-08-25 11:24:31.000000000 -0500
@@ -333,7 +333,7 @@
 endif
 
 # Installs development library links.
-install_dev: install_headers
+install_dev: install_headers all
 	$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
 	-$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
 ifeq ($(HAVE_SHARED),y)
@@ -374,7 +374,7 @@
 endif
 
 # Installs run-time libraries
-install_runtime:
+install_runtime: all
 ifeq ($(HAVE_SHARED),y)
 	$(INSTALL) -d $(PREFIX)$(RUNTIME_PREFIX)lib
 	$(INSTALL) -m 644 lib/lib*-$(VERSION).so \
_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to