From d111dbe252e3673ad2e713283ace06724efd0141 Mon Sep 17 00:00:00 2001 From: Kenneth Russel <kbrussel@alum.mit.edu> Date: Fri, 28 Jul 2006 22:13:41 +0000 Subject: Applied trick from user Kickaha on JOGL forum to potentially allow Mac OS X universal binaries to be used on 10.3 as well; needs more testing git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@864 232f8b59-042b-4e1e-8c03-345bb8c30851 --- make/build.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'make') diff --git a/make/build.xml b/make/build.xml index 726cadf11..f55acf382 100644 --- a/make/build.xml +++ b/make/build.xml @@ -1017,6 +1017,21 @@ <move file="${obj}/libjogl.dylib" tofile="${obj}/libjogl.jnilib" /> <move file="${obj}/libjogl_awt.dylib" tofile="${obj}/libjogl_awt.jnilib" /> <move file="${obj}/libjogl_cg.dylib" tofile="${obj}/libjogl_cg.jnilib" failonerror="false" /> + <antcall target="c.fixup.jawt.version.macosx" inheritrefs="true" /> + </target> + + <target name="c.fixup.jawt.version.macosx" if="macosxfat"> + <!-- Edit the link to the JAWT version in the resulting jnilib + file; this isn't strictly needed but seems to allow the + universal binaries to work on 10.3 machines as well, which + is desirable for some end users --> + <apply executable="install_name_tool"> + <arg value="-change" /> + <arg value="/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjawt.dylib" /> + <arg value="/System/Library/Frameworks/JavaVM.framework/Libraries/libjawt.dylib" /> + <srcfile /> + <fileset dir="${obj}" includes="libjogl_awt.jnilib" /> + </apply> </target> <target name="c.build.jogl.core"> -- cgit v1.2.3