summaryrefslogtreecommitdiff
path: root/lang/blackdown-jre13/patches/patch-ab
blob: 812c58a5f4048dbfccd142ce906edc709838b09f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ab,v 1.2 2002/11/29 21:15:43 schmonz Exp $

--- bin/.java_wrapper.orig	Sat Mar 16 07:18:50 2002
+++ bin/.java_wrapper
@@ -31,6 +31,9 @@ case "`uname -m`" in
     sparc*)
         proc=sparc
         ;;
+    bebox | prep | sandpoint | walnut | *ppc)
+        proc=ppc
+        ;;
     *)
         proc="`uname -m`"
         ;;
@@ -70,7 +73,11 @@ JREHOME="`${jre}/bin/realpath ${JREHOME}
 export APPHOME JREHOME
 
 # Interpret THREADS_FLAG environment variable, if set.
-DEFAULT_THREADS_FLAG=native
+if [ "${proc}" = "ppc" ]; then
+	DEFAULT_THREADS_FLAG=green
+else
+	DEFAULT_THREADS_FLAG=native
+fi
 if [ "${THREADS_FLAG}" = green -o "${THREADS_FLAG}" = native ]; then
     THREADS_TYPE="${THREADS_FLAG}_threads"
 elif [ "x${THREADS_FLAG}" = x ]; then