[DVDnav-discuss] [PATCH] libdvdread: `dvdread-config --libs` should include "-ldl"

Alexis Ballier aballier at gentoo.org
Wed Oct 29 09:47:23 CET 2008


Hi,

> libdvdread's shared library uses libdl functions. However, the output
> of `dvdread-config --libs` does not include "-ldl". An application
> using dvdread-config but does not use libdl itself will therefore fail
> to link against libdvdread.
> 
> Patch adds "-ldl" to the appropriate output strings in
> dvdread-config.sh and dvdread-config.in

Hmm wait. Shouldn't that be outputted only when linking statically ?
libdvdread.so should be linked to libdl if needed, what's the problem
with not having -ldl in --libs ?

By the way, as far as I know, libdl isn't a standard thing, see eg.
[1], freebsd does not have libdl and this patch will probably cause any
application using dvdread-config to fail on freebsd...

Regards,

Alexis.


[1] http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?dlopen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/dvdnav-discuss/attachments/20081029/76bd59b7/attachment.pgp>


More information about the DVDnav-discuss mailing list