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: Martijn Sipkema (msipkema_AT_sipkema-digital.com)
Date: Wed Apr 24 2002 - 02:45:44 EEST


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


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 - 01:40:08 EEST