[MPlayer-dev-eng] [patch] configure fixes for darwin

Emanuele Giaquinta emanuele.giaquinta at gmail.com
Tue Dec 13 10:45:42 CET 2005


Hi,

The attached patch to configure provides the following fixes:

. don't use -rdynamic on darwin, since gcc does not provide this
option on it (no option is required for dlopen to work).

. libdvdread configure script defines __DARWIN__ on darwin to trigger
the definition of SYS_BSD in dvd_reader.c, so define it if we are
using libmpdvdkit2.
-------------- next part --------------
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1108
diff -u -r1.1108 configure
--- configure	11 Dec 2005 18:19:05 -0000	1.1108
+++ configure	13 Dec 2005 09:21:56 -0000
@@ -6825,6 +6825,8 @@
 
   # libavcodec (from ffmpeg) requires CONFIG_DARWIN to enable AltiVec on Darwin/MacOSX
   test "$_altivec" = yes && CFLAGS="$CFLAGS -DCONFIG_DARWIN"
+  # libdvdread requires __DARWIN__ on Darwin/MacOSX
+  test "$_dvdkit2" = yes && CFLAGS="$CFLAGS -D__DARWIN__"
 fi
 if hpux ; then
   # use flag for HPUX missing setenv()
@@ -6906,7 +6908,7 @@
 # (FIXME: 'echocheck "dynamic linking"' above and modify here accordingly)
 _ld_dl_dynamic=''
 bsd && _ld_dl_dynamic='-rdynamic'
-if test "$_real" = yes || test "$_xanim" = yes && not win32 && not qnx  ; then
+if test "$_real" = yes || test "$_xanim" = yes && not win32 && not qnx && not darwin ; then
   _ld_dl_dynamic='-rdynamic'
 fi
 






More information about the MPlayer-dev-eng mailing list