aboutsummaryrefslogtreecommitdiff
path: root/java/jdk13/Makefile
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-10-08 00:45:01 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-10-08 00:45:01 +0000
commit846f8c04ea69a49fa302326d248c23fc354766de (patch)
treeb44fa4714aab014d1d755dc5c850d79314daf8d6 /java/jdk13/Makefile
parent38e03fb03a8cfdf6696c695dc868bb5486dafe57 (diff)
downloadports-846f8c04ea69a49fa302326d248c23fc354766de.tar.gz
ports-846f8c04ea69a49fa302326d248c23fc354766de.zip
Notes
Diffstat (limited to 'java/jdk13/Makefile')
-rw-r--r--java/jdk13/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile
index 5951ed77d68b..002bae749fa2 100644
--- a/java/jdk13/Makefile
+++ b/java/jdk13/Makefile
@@ -85,6 +85,7 @@ PLIST_SUB+= DEBUG:=""
.if defined(WITH_NATIVE_THREADS) || defined(WITH_HOTSPOT)
PLIST_SUB+= NATIVE:=""
MAKE_ARGS+= HPIS="green native"
+USE_REINPLACE= yes
.else
PLIST_SUB+= NATIVE:="@comment "
.endif
@@ -97,7 +98,6 @@ PLIST_SUB+= PLUGIN:=""
.if defined(WITH_HOTSPOT)
PLIST_SUB+= HOTSPOT:=""
-USE_REINPLACE= yes
.if defined(NODEBUG)
HOTSPOT_TARGETS=product1 product
.else
@@ -121,6 +121,17 @@ BUILD_DEPENDS+= ${JDK13DIR}/bin/javac:${PORTSDIR}/java/diablo-jdk13
.endif
.endif
+.if defined(WITH_NATIVE_THREADS) || defined(WITH_HOTSPOT)
+PTHREAD_FILES= common/Defs.gmk \
+ common/Program.gmk \
+ java/hpi/native/Makefile \
+ sun/cmm/Makefile \
+ ../ext/plugin/build/solaris/GNUmakefile \
+ ../../hotspot1.3.1/build/linux/platform_i486 \
+ ../../hotspot1.3.1/build/bsd/makefiles/gcc.make \
+ ../../hotspot1.3.1/build/linux/makefiles/vm.make
+.endif
+
.if defined(WITH_HOTSPOT) && ${OSVERSION} < 500039
USE_GCC= 3.2
BUILD_DEPENDS+= gcc32:${PORTSDIR}/lang/gcc32
@@ -195,6 +206,11 @@ post-patch:
@${REINPLACE_CMD} -e "s:PATH[)]gcc:PATH)gcc32:g ; s:PATH[)]g\+\+:PATH)g\+\+32:g" ${WRKSRC}/common/Defs-bsd.gmk
.endif
.endif
+.if defined(WITH_NATIVE_THREADS) || defined(WITH_HOTSPOT)
+ @for file in ${PTHREAD_FILES}; do \
+ ${REINPLACE_CMD} -e "s:-pthread:${PTHREAD_LIBS}:g" ${WRKSRC}/$${file}; \
+ done
+.endif
pre-build:
.if defined(WITH_LINUX_BOOTSTRAP)