Re: [linux-audio-dev] dynamic linking

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] dynamic linking
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Wed Apr 24 2002 - 00:18:03 EEST


On Tue, Apr 23, 2002 at 02:26:33 -0400, Paul Davis wrote:
> >I'm working on a library for accessing MIDI hardware, which uses plugins
> >to communicate with the hardware. Now I'm not sure how to compile
> >these shared libraries. Should I use -Bsymbolic? This makes the linker
> >give a warning when the library is not linked against all the shared
> >libraries
>
> although i hate it in so many ways, i would strongly suggest that you
> use libtool. there are complexities associated with building shared
> libs that its better to leave to other tools.

I wouldn't recommend libtool for .so plugins, it makes a real mess of it.

I link with "ld -shared -Bsymbolic -lc -lm -o $@", but YMMV.

- Steve


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Apr 24 2002 - 00:16:44 EEST