[vlc-devel] lib include order

Rémi Denis-Courmont rem at videolan.org
Fri Apr 17 12:00:07 CEST 2009


Le vendredi 17 avril 2009, Sébastien Escudier a écrit :
> Hi
>
> I have two versions of a lib (libavcodec).
> One is installed in /usr and one in vlc contrib path.
> If I use the contrib pkgconfig, then it correctly sets
> -Lextras/contrib/lib flag.
> But durring the compilation, this flag is *after* -L/usr one, so the
> linker will use /usr libavcodec.
> Maybe it would be better to have it before ?

I'm not sure it's cleanly fixable. You might have the opposite problem. 
Or the initial -L may come from something we don't have direct control 
on (libtool or another pkg-config).

In any case, we cannot modify raw flags inside Makefiles. You have to 
patch configure.ac.

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list