[vlc-devel] lib include order
Sébastien Escudier
sebastien-devel at celeos.eu
Fri Apr 17 09:03:58 CEST 2009
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 ?
Here is the compile line (see the **** **** I added):
libtool: link: i586-mingw32msvc-gcc -std=gnu99 -shared
.libs/libavcodec_plugin_la-avcodec.o .libs/libavcodec_plugin_la-video.o
.libs/libavcodec_plugin_la-audio.o .libs/libavcodec_plugin_la-deinterlace.o
.libs/libavcodec_plugin_la-fourcc.o .libs/libavcodec_plugin_la-chroma.o
.libs/libavcodec_plugin_la-encoder.o -Wl,--whole-archive
../../../compat/.libs/libcompat.a -Wl,--no-whole-archive **** -L/usr/win32/lib
-L/home/jb/vlc/extras/contrib/lib -lavcodec **** /usr/win32/lib/libfaac.a -lgsm
/usr/win32/lib/libmp3lame.a -lavutil ../../../src/.libs/libvlccore.dll.a
/usr/win32/lib/libgpg-error.a -lkernel32 -lws2_32 -lnetapi32 -lwinmm -lmingw32
-mtune=pentium2 -mms-bitfields -o .libs/libavcodec_plugin.dll
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
.libs/libavcodec_plugin.dll.a
More information about the vlc-devel
mailing list