]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/mplayer/0005-tremor-ogg.patch
package/tovid: switch from mplayer to mpv
[coffee/buildroot.git] / package / mplayer / 0005-tremor-ogg.patch
1 Fix static linking with tremor & libogg
2
3 The order of the libraries needs to be changed to fix a bug during
4 static linking caught by buildroot autobuilders:
5
6 http://autobuild.buildroot.net/results/bc9/bc98fa585399b53ea181dbaf392b93424145911d/
7
8 /home/test/autobuild/instance-3/output/host/usr/powerpc-buildroot-linux-uclibc/sysroot/usr/lib/libvorbisidec.a(synthesis.o): In function `_vorbis_synthesis1':
9 synthesis.c:(.text+0x90): undefined reference to `oggpack_readinit'
10 synthesis.c:(.text+0x9c): undefined reference to `oggpack_read'
11 [...]
12
13 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
14 (patch sent upstream:
15  http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2016-July/073501.html)
16
17 Index: configure
18 ===================================================================
19 --- a/configure (revision 37873)
20 +++ b/configure (working copy)
21 @@ -6629,7 +6629,7 @@
22    def_tremor='#define CONFIG_TREMOR 1'
23    codecmodules="tremor $codecmodules"
24    res_comment="integer libvorbis"
25 -  extra_ldflags="$extra_ldflags -logg -lvorbisidec"
26 +  extra_ldflags="$extra_ldflags -lvorbisidec -logg"
27  elif test "$_libvorbis" = yes ; then
28    _vorbis=yes
29    def_vorbis='#define CONFIG_OGGVORBIS 1'