Web lists-archives.com

[MPlayer-dev-eng] [PATCH] Fix linking with libvorbis with --enable-libvorbis




Hi,

when configured with --enable-libvorbis the test for libvorbis never
happens because $_libvorbis contains "yes" in this case leading to
link errors:

http://autobuild.buildroot.net/results/7f6/7f6e5396e95a3c3b676ca59bedc5317aa88e5f4c/build-end.log

/home/buildroot/buildroot-test/scripts/instance-0/output/build/mplayer-1.2/libmpcodecs/ad_libvorbis.c:248: undefined reference to `vorbis_synthesis_pcmout'
/home/buildroot/buildroot-test/scripts/instance-0/output/build/mplayer-1.2/libmpcodecs/ad_libvorbis.c:248: undefined reference to `vorbis_synthesis_pcmout'
/home/buildroot/buildroot-test/scripts/instance-0/output/build/mplayer-1.2/libmpcodecs/ad_libvorbis.c:254: undefined reference to `vorbis_synthesis'
[...]

This patch fixes the problem.

Regards, Bernd Kuhls

Signed-off-by: Bernd Kuhls <bernd.kuhls@xxxxxxxxxxx>

diff -uNr MPlayer-1.2.org/configure MPlayer-1.2/configure
--- MPlayer-1.2.org/configure	2015-10-02 22:29:04.000000000 +0200
+++ MPlayer-1.2/configure	2015-11-08 15:03:26.382426269 +0100
@@ -6538,7 +6538,7 @@
   _tremor=no
   statement_check tremor/ivorbiscodec.h 'vorbis_synthesis(0, 0)' -logg -lvorbisidec && _tremor=yes && _libvorbis=no
 fi
-if test "$_libvorbis" = auto; then
+if test "$_libvorbis" != no; then
   _libvorbis=no
   for vorbislibs in '-lvorbisenc -lvorbis -logg' '-lvorbis -logg' ; do
     statement_check vorbis/vorbisenc.h 'vorbis_encode_ctl(0, 0, 0); ogg_stream_clear(0)' $vorbislibs && _libvorbis=yes && break

_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng