summaryrefslogtreecommitdiff
path: root/java/openjdk6
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2010-09-09 06:18:08 +0000
committerGreg Lewis <glewis@FreeBSD.org>2010-09-09 06:18:08 +0000
commitfd3a4779e92b1b77de93711fe20981a08b023b68 (patch)
treead879ccbc0aaf1a16e59ca71e45d72bdd5671d0b /java/openjdk6
parent- Update to 0.4.3 (diff)
. Respect MAKE_JOB_NUMBERS and use that to set up the number of HotSpot
make jobs. If not, fall back to the number of CPUs, as per the current behaviour. Only the HotSpot part of the build is safe to parallelise, so leave the port marked MAKE_JOBS_UNSAFE.
Notes
Notes: svn path=/head/; revision=260828
Diffstat (limited to 'java/openjdk6')
-rw-r--r--java/openjdk6/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/java/openjdk6/Makefile b/java/openjdk6/Makefile
index ef2d18e67d11..a211f14726b0 100644
--- a/java/openjdk6/Makefile
+++ b/java/openjdk6/Makefile
@@ -147,8 +147,14 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/dejavu:${PORTSDIR}/x11-fonts/dejavu
USE_DISPLAY= yes
.endif
-BUILD_JOBS_NUMBER!= ${SYSCTL} -n kern.smp.cpus
+.if !defined(DISABLE_MAKE_JOBS)
+.if defined(MAKE_JOBS_NUMBER)
+BUILD_JOBS_NUMBER= ${MAKE_JOBS_NUMBER}
+.else
+BUILD_JOBS_NUMBER= `${SYSCTL} -n kern.smp.cpus`
+.endif
MAKE_ENV+= HOTSPOT_BUILD_JOBS=${BUILD_JOBS_NUMBER}
+.endif
COPYDIRS= \
hotspot/src/os/linux/launcher \