[MPlayer-dev-eng] [PATCH] library search order conflict

Steven M. Schultz sms at 2BSD.COM
Thu Aug 29 17:36:33 CEST 2002


hi!

> From: Arpi <arpi at thot.banki.hu>
> > 	Libraries local to MPlayer should, I think, be linked using 
> > 	the form "liba52/liba52.a" instead of "-Lliba52 -la52".  The
> 
> yes. i prefer this path/lib.a form too, but i feel it isn't portable enough
> otherwise other projects use tyhis form too.

	I think it is actually more portable.  Explicitly giving the 
	filename removes ambiguity (different systems have different search
	algorithms).

> actually the libtool project was created to solve this issue (make linkers
> look compatible) but i hate it.

	I know.  I hate it too - it is bloated and difficult to work with.

> if no one is against this (especially non-linux maintainers!) then it's ok
> to commit.

	I'm a non-linux maintainer ;)   I do most of my work with BSD/OS but
	I have tested the patch on Linux and it worked fine.

> but if we decide to do this change, then change it everywhere!

	Agreed!   I changed only the libraries that have caused problems ;)  The
	correct thing, as you mention, is to be consistent and force the use
	of local libraries everywhere - if MPlayer bundles in a library then
	that should be the one used.

	Cheers,
	Steven Schultz
	sms at 2bsd.com



More information about the MPlayer-dev-eng mailing list