summaryrefslogtreecommitdiff
path: root/lang/openjdk7/patches/patch-ah
blob: 8e0ac1d9da7c8e088b0d0f387d4cb2460c9442e7 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$NetBSD: patch-ah,v 1.5 2013/06/23 17:39:43 jperkin Exp $

DragonFly support.

Disable SunOS multiarch.

--- jdk/make/common/shared/Platform.gmk.orig	2013-06-21 13:12:13.786915027 +0000
+++ jdk/make/common/shared/Platform.gmk
@@ -119,7 +119,7 @@ ifeq ($(SYSTEM_UNAME), SunOS)
     ARCH := $(shell isainfo -n)
     # ISA_DIR is used to locate 64-bit specific libraries which are generally
     # in the same general place as other libraries under the ./$(ARCH) directory
-    ISA_DIR = /$(ARCH)
+    NOMULTIARCHISA_DIR = /$(ARCH)
   endif
   # Need to maintain the jre/lib/i386 location for 32-bit Intel
   ifeq ($(ARCH), i586)
@@ -224,6 +224,13 @@ ifeq ($(SYSTEM_UNAME), Linux)
   MB_OF_MEMORY := $(shell free -m | fgrep Mem: | awk '{print $$2;}' )
 endif
 
+ifeq ($(SYSTEM_UNAME), DragonFly)
+  PLATFORM = bsd
+  OS_NAME = dragonfly
+  OS_VENDOR = DragonFlyBSD
+  REQUIRED_OS_VERSION = 2.4
+endif
+
 ifeq ($(SYSTEM_UNAME), Darwin)
   PLATFORM = macosx
   OS_NAME = darwin
@@ -371,9 +378,9 @@ ifeq ($(PLATFORM), bsd)
   REQUIRED_FREE_SPACE=1500000
   # How much RAM does this machine have:
   ifeq ($(OS_VENDOR), OpenBSD)
-    MB_OF_MEMORY=$(shell sysctl -n hw.physmem | awk '{print int($$NF / 1048576); }' )
+    MB_OF_MEMORY=$(shell /sbin/sysctl -n hw.physmem | awk '{print int($$NF / 1048576); }' )
   else
-    MB_OF_MEMORY=$(shell (sysctl -n hw.physmem64 2> /dev/null || sysctl -n hw.physmem) | awk '{print int($$NF / 1048576); }' )
+    MB_OF_MEMORY=$(shell (/sbin/sysctl -n hw.physmem64 2> /dev/null || sysctl -n hw.physmem) | awk '{print int($$NF / 1048576); }' )
   endif
 endif