libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with shrext on Mac OS X


From: Ian Kerr
Subject: Problem with shrext on Mac OS X
Date: Thu, 31 Jul 2008 18:32:42 -0400 (EDT)

Hello,

I'm trying to build a JNI library and, from what I understand, the library needs to have a '.jnilib' extension on Mac OS X. As I understand it, I should be able to use the -shrext flag to get libtool to use the jnilib extension rather than the standard shared library extension. However, I can't get this to work. I issue the command:

/bin/sh ../../../libtool --mode=link g++ -shared -rpath /usr/local/lib -shrext .jnilib -o libjmath.la swig_math.lo

and the following g++ invocation is made:

g++ -dynamiclib -single_module -flat_namespace -undefined suppress -o .libs/libjmath.0.dylib .libs/swig_math.o -install_name /usr/local/lib/libjmath.0.dylib -compatibility_version 1 -current_version 1.0

As you can see, the extension isn't changed from dylib to jnilib. As I'm new to libtool I figure I'm doing something wrong. Any ideas?

Thanks,
--Ian




reply via email to

[Prev in Thread] Current Thread [Next in Thread]