0005-tremor-ogg.patch 1.2 KB

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