On Jul 30, 2007, at 3:57 PM, Doug Zwick wrote:
FYI my makefile places no -l terms in the link statement, only -
framework terms:
/usr/bin/gcc-3.3 -arch ppc -pipe -fmessage-length=0 -L/Developer/
SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/darwin/ -F/Developer/SDKs/
MacOSX10.3.9.sdk/System/Library/Frameworks -framework JavaVM -
framework ApplicationServices -framework Foundation -dynamiclib -
Wl,-single_module -compatibility_version 1 -current_version 1 -
mmacosx-version-min=10.2 -Wl,-syslibroot,/Developer/SDKs/
MacOSX10.3.9.sdk ppc/xxx.o -lstdc++ -install_name libxxx.jnilib
-o ppc/libxxx.jnilib
/usr/bin/gcc-4.0 -arch i386 -pipe -fmessage-length=0 -L/Developer/
SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/ -F/Developer/SDKs/
MacOSX10.4u.sdk/System/Library/Frameworks -framework JavaVM -
framework ApplicationServices -framework Foundation -dynamiclib -
Wl,-single_module -compatibility_version 1 -current_version 1 -
mmacosx-version-min=10.4 -Wl,-syslibroot,/Developer/SDKs/
MacOSX10.4u.sdk x86/xxx.o -lstdc++ -install_name libxxx.jnilib -
o x86/libxxx.jnilib
We have different SDK requirements for PPC and x86 jnilibs, hence
the architecture-specific builds with different tool sets (one for
ppc w/GCC 3 and one for x86 w/GCC 4).
The original poster was trying to build JNA with OSX 10.3
compatibility (which is only for PPC, right?).