Web lists-archives.com

[MPlayer-dev-eng] Fix dvdread libs




When $_dvdread is "yes", the configure script forgets to add the
dvdread's cflags and libs to the extra_cflags and extra_ldflags
variables, and that is causing a link failure like this one:

stream/stream_dvd.o: In function `open_s':
stream_dvd.c:(.text+0x2d8): undefined reference to `DVDOpen'
[snip]

The attached patch fixes the problem.
Index: configure
===================================================================
--- configure	(revision 37544)
+++ configure	(working copy)
@@ -6152,7 +6152,8 @@
 
 if test "$_dvdread" = yes; then
   def_dvdread='#define CONFIG_DVDREAD 1'
-  extra_ldflags="$extra_ldflags"
+  extra_cflags="$extra_cflags $($_dvdreadconfig --cflags)"
+  extra_ldflags="$extra_ldflags $($_dvdreadconfig --libs)"
   inputmodules="dvdread $inputmodules"
 else
   _dvdnav=no
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng