Fix realaudio linking on Linux without the Win32 loader
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 3 Feb 2008 15:23:15 +0000 (15:23 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 3 Feb 2008 15:23:15 +0000 (15:23 +0000)
configure.ac
libs/loader/Makefile.am

index bb90a82..e5e1b01 100644 (file)
@@ -718,7 +718,7 @@ if test "${ac_cv_have_plugins}" = "no"; then
     ac_cv_my_have_dlopen=yes,
     AC_CHECK_LIB(dl, dlopen,
       ac_cv_my_have_dlopen=yes
     ac_cv_my_have_dlopen=yes,
     AC_CHECK_LIB(dl, dlopen,
       ac_cv_my_have_dlopen=yes
-      VLC_ADD_LIBS([libvlc],[-ldl]),
+      VLC_ADD_LIBS([libvlc realaudio],[-ldl]),
       AC_CHECK_LIB(svld, dlopen,
         ac_cv_my_have_dlopen=yes
         VLC_ADD_LIBS([libvlc],[-lsvld]))))
       AC_CHECK_LIB(svld, dlopen,
         ac_cv_my_have_dlopen=yes
         VLC_ADD_LIBS([libvlc],[-lsvld]))))
@@ -5640,7 +5640,7 @@ AS_IF([test "${enable_loader}" = "yes"],
     VLC_ADD_CPPFLAGS([quicktime],[-I../../@top_srcdir@/libs/loader])
     VLC_ADD_LIBS([quicktime],[../../libs/loader/libloader.la -lpthread])
     VLC_ADD_CPPFLAGS([realaudio],[-I../../@top_srcdir@/libs/loader -DLOADER])
     VLC_ADD_CPPFLAGS([quicktime],[-I../../@top_srcdir@/libs/loader])
     VLC_ADD_LIBS([quicktime],[../../libs/loader/libloader.la -lpthread])
     VLC_ADD_CPPFLAGS([realaudio],[-I../../@top_srcdir@/libs/loader -DLOADER])
-    VLC_ADD_LIBS([realaudio],[../../libs/loader/libloader.la -ldl -lpthread])
+    VLC_ADD_LIBS([realaudio],[../../libs/loader/libloader.la])
   ])
 
 dnl
   ])
 
 dnl
index 724c3e0..9d00c27 100644 (file)
@@ -30,4 +30,5 @@ noinst_HEADERS = com.h driver.h ext.h ldt_keeper.h loader.h registry.h \
 libloader_la_SOURCES = ldt_keeper.c pe_image.c module.c ext.c win32.c \
        driver.c pe_resource.c resource.c registry.c afl.c vfl.c \
        wrapper.S stubs.s kludge.c
 libloader_la_SOURCES = ldt_keeper.c pe_image.c module.c ext.c win32.c \
        driver.c pe_resource.c resource.c registry.c afl.c vfl.c \
        wrapper.S stubs.s kludge.c
+libloader_la_LIBADD = -ldl -lpthread