Although OS X supports fat/universal binaries not all libraries are built that way. It'd be useful for me to specify different native libraries for OS X depending on whether an applet runs with a 32bit or 64bit VM.
The (untested, as I don't have OS X) fix should be trivial:
}
} else if (osName.startsWith("Mac") || osName.startsWith("Darwin")) {
- nativeJarList = getParameter("al_mac");
+
+ // check if arch specific natives have been specified
+ if (System.getProperty("os.arch").endsWith("64")) {
+ nativeJarList = getParameter("al_mac64");
+ } else {
+ nativeJarList = getParameter("al_mac32");
+ }
+
+ if (nativeJarList == null) {
+ nativeJarList = getParameter("al_mac");
+ }
+
} else if (osName.startsWith("Solaris") || osName.startsWith("SunOS")) {
nativeJarList = getParameter("al_solaris");
} else if (osName.startsWith("FreeBSD")) {
Cheers,
Simon