classpath
[Top][All Lists]
Advanced

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

Re: libtool question


From: Michael Koch
Subject: Re: libtool question
Date: Wed, 28 Jul 2004 22:08:50 +0200
User-agent: KMail/1.6.2

Am Dienstag, 27. Juli 2004 23:40 schrieb Chris Burdess:
> -----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?

What do you mean by "unlinkable" ? Any error message at hand ?


Michael




reply via email to

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