[vlc-devel] PATCH: Additional default LDFLAGS on BeOS

Cian Duffy myob87 at gmail.com
Mon Dec 12 22:13:51 CET 2005


The dvdnav access module uses dlopen(), which requires libdl under BeOS, and
in general, libintl needs to be declared in the LDFLAGS for it to be linked
on BeOS - the current decleration method for it does not ensure it is linked
by default. Two additional lines in a BeOS-only section of configure.ac will
fix this

With thanks to Christophe for guiding me to this:

Index: configure.ac
--- configure.ac    (revision 13710)
+++ configure.ac    (working copy)
@@ -210,7 +210,8 @@
     VLC_ADD_LDFLAGS([vlc beos logger],[-lbe])
     VLC_ADD_LDFLAGS([beos],[-lmedia -ltranslation -ltracker -lgame])
+    VLC_ADD_LDFLAGS([dvdnav],[-ldl])
+    LDFLAGS_save="${LDFLAGS_save} -lintl"; LDFLAGS="${CFLAGS_save}"
     dnl Check for BONE
     if test -f /boot/beos/system/lib/libbind.so; then
         VLC_ADD_LDFLAGS([access_file access_ftp access_mms
access_output_udp telnet netsync sap ipv4 vlc],[-lbind -lsocket])


"We're busy running out of time"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20051212/300888dc/attachment.html>

More information about the vlc-devel mailing list