> > >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.

I did that, but when linking with the alsa library from within the plugin,
alsa
only works when I load the plugin with RTLD_GLOBAL, and I would
like to know why.

--martijn



Reply via email to