[Top][All Lists]

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

Darwin jnilib with libtool/automake

From: Kyle F. Downey
Subject: Darwin jnilib with libtool/automake
Date: Thu, 11 Oct 2001 17:39:27 +0000 (GMT)

Has anyone tried building jnilib bundles with the autotools suite
(autoconf, automake and libtool)?

The recommended command-line method I've seen documented requires source
files. To make this work with a configure script (that wants to compile
the object files first), I've seen code like this in one project's

        rm -rf jni/*.o
        c++ -bundle -I/System/Library/Frameworks/JavaVM.framework/Headers
        -I. -DHAVE_STRSTREAM -o libhippoplot.jnilib -framework JavaVM \
        jni/*.cxx pattern/*.cxx reps/*.cxx src/*.cxx transforms/*.cxx \

You'll note the first thing it does is delete all the object files created
by previous Makefile steps! In addition, this target exists outside of the
whole libtool domain--it should be managing details of how to build a
shared library.

Right now I have my JNI code portable between UNIX and MinGW32 (GNU tools
on Windows) with a single configure script. I'd love to be able to do the
same for MacOS X; I'm planning on writing an article on portable JNI
using autotools. Any help?

Thanks in advance!


reply via email to

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