[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Testing/help needed - experimental glibc version



On Wed, Oct 22, 2003 at 10:13:44PM -0400, Daniel Jacobowitz wrote:
> If you want to try it out, copy the relevant bits from i386.mk into
> ia64.mk in debian/sysdeps/; it should be pretty easy.

The attached makes the build go a lot faster for me :)

Also, as I mentioned in this thread 

http://sources.redhat.com/ml/libc-alpha/2003-09/msg00256.html

IA64 gets a lot of warnings from a redefined symbol.  Should this be
modified with a dpatch in kernel-headers?

-i
--- ./patch_against/glibc-2.3.2.ds1/debian/rules.d/build.mk	2003-10-23 03:56:08.591766882 +0000
+++ ./glibc-2.3.2.ds1/debian/rules.d/build.mk	2003-10-23 03:57:36.305632995 +0000
@@ -3,6 +3,9 @@
 # This little bit of magic makes it possible:
 xx=$(if $($(curpass)_$(1)),$($(curpass)_$(1)),$($(1)))
 
+# Use as many processors as there are available
+NJOBS=$(shell if [ -f /proc/cpuinfo ] ; then echo `cat /proc/cpuinfo | grep 'processor' | wc -l` ; else echo 1 ; fi)
+
 $(patsubst %,mkbuilddir_%,$(GLIBC_PASSES)) :: mkbuilddir_% : $(stamp)mkbuilddir_%
 $(stamp)mkbuilddir_%: $(stamp)patch-stamp $(LINUX_HEADER_DIR)
 	@echo Making builddir for $(curpass)
@@ -45,7 +48,7 @@
 $(patsubst %,build_%,$(GLIBC_PASSES)) :: build_% : $(stamp)build_%
 $(stamp)build_%: $(stamp)configure_%
 	@echo Building $(curpass)
-	$(MAKE) -C $(DEB_BUILDDIR) 2>&1 | tee -a $(log_build)
+	$(MAKE) -C $(DEB_BUILDDIR) -j $(NJOBS) 2>&1 | tee -a $(log_build)
 	touch $@
 
 $(patsubst %,check_%,$(GLIBC_PASSES)) :: check_% : $(stamp)check_%

Reply to: