[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: FW: Cannot load shared lib via Javahl bindings

From: Patrick Mayweg <mayweg_at_qint.de>
Date: 2004-08-31 07:20:00 CEST

Hi Justin,
it is not the relink_command which is the real problem. Adding -lstdc++
to it is just a work aoround. It does contain g++ as the command to be
used. Adding -lstdc++ only works for gcc platforms.

As far as I understand it, the real problem is the variable
arichive_cmds in libtool. It uses $CC to link the shared
archive/objects. For linking and relinking of c++ shared archive/objects
the command which is passed in should be used. For testing I have
modified that the link and relink command set CC to the command
parameter. I can build core subversion and javahl on linux with it.

Since the source for the subversion libtool is in ac-helpers/libtool.m4,
we could modify it.
Patrick

Justin Erenkrantz wrote:

> --On Monday, August 30, 2004 8:11 AM -0500 Kopp David K
> <david.kopp@us.army.mil> wrote:
>
>> That fixed it. I guess something needs to be changed in the autogen
>> script? I would do it, but autogen is all black magic to me.
>
>
> No, it's a bug in libtool. We have no control over what the
> relink_command is set at. We *might* be able to append -lstdc++ to
> javahl on Linux, but most other OSes don't need that. -- justin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 31 11:14:38 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.