[pkg-java] r2635 - trunk/eclipse/debian
Matthias Klose
doko at costa.debian.org
Sun Oct 22 09:43:46 UTC 2006
Author: doko
Date: 2006-10-22 09:43:45 +0000 (Sun, 22 Oct 2006)
New Revision: 2635
Modified:
trunk/eclipse/debian/rules
Log:
- bind number of cpus used to the avail mem
Modified: trunk/eclipse/debian/rules
===================================================================
--- trunk/eclipse/debian/rules 2006-10-22 02:44:34 UTC (rev 2634)
+++ trunk/eclipse/debian/rules 2006-10-22 09:43:45 UTC (rev 2635)
@@ -37,7 +37,7 @@
endif
ifeq ($(enable_native),yes)
- AVAIL_CPUS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
+ AVAIL_CPUS := $(shell n=$$(getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1); awk -v n=$$n '/^MemTotal:/ { n2=int($$2/196608); if (n2<n) n=n2; print n}' /proc/meminfo)
ifneq ($(AVAIL_CPUS),1)
AOT_MAKEFLAGS = -j$(AVAIL_CPUS)
export AOT_MAKEFLAGS
More information about the pkg-java-commits
mailing list