[Ffmpeg-devel] mp3lame : more --as-needed woes

Uoti Urpala uoti.urpala
Fri Nov 3 08:05:51 CET 2006


On Thu, 2006-11-02 at 15:01 -0500, Rich Felker wrote:
> It should not add the dependency the first time -lm is seen, but it
> should add it the _second_ time, after libmp3lame has been linked. If
> it doesn't it's broken, IMO, regardless of whether the documentation
> regards this brokenness as the intended behavior or not.

IMO it shouldn't, and the people who wrote it seem to agree.

> > The error above means that the system has a broken libmp3lame.so. It
> > should depend on libm instead of relying on the main program to link
> > libraries providing the needed symbols.
> 
> This is impossible if libmp3lame is a static library.

But it isn't. Static libraries need extra -l flags specific to the
library used; shared libraries should not require that. The main program
shouldn't need to know whether the library uses libm or whatever other
library internally. In fact the other libraries used could change as the
library is updated, and that should not require relinking the main
program as long as the ABI stays the same.





More information about the ffmpeg-devel mailing list