From 23531e433b5aadfe2344b499600c4bd2d2088ac6 Mon Sep 17 00:00:00 2001 From: Travis Bryson Date: Tue, 25 Apr 2006 01:32:05 +0000 Subject: Issue number: Obtained from: Submitted by: Reviewed by: Add proper 64 bit Sparcv9 detection. These changes are necessary for 64 bit JOGL build on sparc solaris. Modified Files: make/gluegen-cpptasks.xml src/java/com/sun/gluegen/StructLayout.java src/java/com/sun/gluegen/runtime/CPU.java ---------------------------------------------------------------------- git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@30 a78bb65f-1512-4460-ba86-f6dc96a7bf27 --- src/java/com/sun/gluegen/StructLayout.java | 1 + src/java/com/sun/gluegen/runtime/CPU.java | 1 + 2 files changed, 2 insertions(+) (limited to 'src/java/com/sun') diff --git a/src/java/com/sun/gluegen/StructLayout.java b/src/java/com/sun/gluegen/StructLayout.java index b3a6ac5..175ff60 100644 --- a/src/java/com/sun/gluegen/StructLayout.java +++ b/src/java/com/sun/gluegen/StructLayout.java @@ -130,6 +130,7 @@ public class StructLayout { (os.startsWith("linux") && cpu.equals("x86_64")) || (os.startsWith("linux") && cpu.equals("ia64")) || (os.startsWith("sunos") && cpu.equals("sparc")) || + (os.startsWith("sunos") && cpu.equals("sparcv9")) || (os.startsWith("sunos") && cpu.equals("x86")) || (os.startsWith("sunos") && cpu.equals("amd64")) || (os.startsWith("mac os") && cpu.equals("ppc")) || diff --git a/src/java/com/sun/gluegen/runtime/CPU.java b/src/java/com/sun/gluegen/runtime/CPU.java index ce187e4..a399b11 100755 --- a/src/java/com/sun/gluegen/runtime/CPU.java +++ b/src/java/com/sun/gluegen/runtime/CPU.java @@ -66,6 +66,7 @@ public class CPU { (os.startsWith("linux") && cpu.equals("amd64")) || (os.startsWith("linux") && cpu.equals("x86_64")) || (os.startsWith("linux") && cpu.equals("ia64")) || + (os.startsWith("sunos") && cpu.equals("sparcv9")) || (os.startsWith("sunos") && cpu.equals("amd64"))) { } else { throw new RuntimeException("Please port CPU detection (32/64 bit) to your platform (" + os + "/" + cpu + ")"); -- cgit v1.2.3