This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);
     }




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]