[pulseaudio-discuss] Fix PulseAudio 1.0 build for Solaris
Maarten Bosmans
mkbosmans at gmail.com
Sun Oct 16 06:06:48 PDT 2011
2011/10/15 Brian Cameron <brian.cameron at oracle.com>:
> 1) The Solaris linker does not allow lazy linking, so client programs
> must link against all libraries that contain symbols used by the
> program. So I filed this bug:
>
> https://bugs.freedesktop.org/show_bug.cgi?id=41539
>
> A proposed patch in this bug shows how we fix this problem on
> Solaris. This changes the PulseAudio pkg-config files so that they
> also specify that client needs to link against libpulsecommon and
> libpulsecore, since these now contain symbols needed by client
> programs.
This is not how things are supposed work on Linux. Libraries should
only link against libraries from which they use symbol. In
pulseaudio's case that's just libpulse, because that is our public
API. Overlinking is generally frowned upon.
> The responses to this bug suggest that this is not desirable since
> these PulseAudio libraries may be updated in future versions and it
> is not desirable to make programs relink on Linux when these
> libraries change.
Indeed, this is one of the reasons.
> Wouldn't a better solution be to just drop the version numbers from
> these libraries, or to only update their version numbers when you
> really want people to need to relink? Why embed version numbers in
> library names when you want them to work across multiple versions?
Couldn't you just add Libs.private when compiling pulse applications?
Maarten
More information about the pulseaudio-discuss
mailing list