On Fri, Mar 24, 2000 at 05:48:23PM +0000, Gary V. Vaughan wrote:
> On Fri, Mar 24, 2000 at 03:59:50PM +0000, [EMAIL PROTECTED] wrote:
[snip]
> > I'm writing a plugin for an application which dlopen's its plugins
> > when it starts up. The application author has made available a
> > plugin library (static, but pic), which I link with my code to build
> > the plugin. This works fine using gcc on linux, but I can't get
> > libtool to do it. Can libtool do this?
>
> Ah, okay I see what you mean now. And I'm afraid that the answer is
> "sort of", because linking static libraries (albeit of pic objects) into
> shared libraries is non-portable, do libtool can't really support it
> reliably.
I was afraid of that.
[snip]
> The portable (but complicated) way to it, is to have your make rules
> extract the pic objects from the static archive with $AR, and link all
> of those objects into your plugin. There is already code in libtool
> that does something similar with convenience libraries (which are
> after all static `ar' libraries of pic objects) if the host compiler
> doesn't do --whole-archive, so you can probably start from there.
This is what I'll do then. Maybe this could be a future enhancement to
libtool?
Thanks again for all your help.
Jason
> Cheers,
> Gary.
> --
> ___ _ ___ __ _ mailto:[EMAIL PROTECTED]
> / __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ [EMAIL PROTECTED]
> | (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
> \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
> home page: /___/ /___/ gpg public key:
> http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc
--
Jason Day jasonday at
http://jasonday.home.att.net worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9