classpath
[Top][All Lists]
Advanced

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

libtool question


From: Chris Burdess
Subject: libtool question
Date: Tue, 27 Jul 2004 22:40:29 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I need a bit of help fixing the JNI build for gnujaxp, perhaps someone familiar with libtool could comment:

All goes well until the link step. Then, under Darwin, I'm issuing the following:

/bin/sh ./libtool --mode=link gcc -shared -rpath /usr/local/lib - -release 0.99 -export-dynamic -D_JNI_IMPLEMENTATION_ -L/usr/local/lib - -lxslt -lxml2 -lz -lpthread -liconv -lm -shrext .jnilib -o libxmlj.la xmlj_dom.lo xmlj_error.lo xmlj_io.lo xmlj_node.lo xmlj_sax.lo xmlj_transform.lo xmlj_util.lo xmlj_xpath.lo

libtool converts this to

gcc -dynamiclib -flat_namespace -undefined suppress -o .libs/libxmlj-0.99.jnilib .libs/xmlj_dom.o .libs/xmlj_error.o .libs/xmlj_io.o .libs/xmlj_node.o .libs/xmlj_sax.o .libs/xmlj_transform.o .libs/xmlj_util.o .libs/xmlj_xpath.o - -L/usr/local/lib /usr/local/lib/libxslt.dylib /usr/lib/libm.dylib /usr/local/lib/libxml2.dylib /usr/lib/libpthread.dylib /usr/lib/libz.dylib -lz -lpthread /usr/lib/libiconv.dylib -lm - -install_name /usr/local/lib/libxmlj-0.99.jnilib

Problem is, this is wrong, and results in an unlinkable shared object. How do I get libtool to leave the -l arguments alone?

TIA
- -- Chris Burdess
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBBsvO6dl1DEqHgrgRAtBlAJ4/irAJ7eHFSLUiIrks0m6QHAAEZwCfZUV+
IKs5AUVPDEL59tWS2ttQ/Z0=
=9hZD
-----END PGP SIGNATURE-----





reply via email to

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