This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: use amd64 for os.arch on x86-64 systems
- From: Anthony Green <green at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 02 Jan 2006 20:00:38 -0800
- Subject: Patch: use amd64 for os.arch on x86-64 systems
Sun seems to identify x86-64 systems as "amd64". jogl depends on this.
I'd like to apply this to HEAD and the 4.1 branch. Ok?
Thanks,
AG
2006-01-02 Anthony Green <green@redhat.com>
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
x86_64 systems should have os.arch set to "amd64" for Sun JDK
compatibility.
Index: gnu/classpath/natSystemProperties.cc
===================================================================
--- gnu/classpath/natSystemProperties.cc (revision 109116)
+++ gnu/classpath/natSystemProperties.cc (working copy)
@@ -187,6 +187,9 @@
&& u.machine[3] == '6'
&& u.machine[4] == 0)
SET ("os.arch", "i386");
+ // x86_64 is amd64 for Sun compatibility.
+ else if (strcmp (u.machine, "x86_64") == 0)
+ SET ("os.arch", "amd64");
else
SET ("os.arch", u.machine);
}