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

Yang Zhao yang at yangman.ca
Wed Oct 29 22:40:35 CET 2008


2008/10/29 Alexis Ballier <aballier at gentoo.org>:
> The ebuild uses configure2 and allows user ldflags. Are you using
> as-needed by any chance ?

Indeed I am.

> If yes, please try the enclosed patch. With the current configure2
> build system, if I link with as-needed, libdvdread.so gets its libdl
> linkage dropped.

Yup, that fixed it.

Looks like my understanding of shared library linking is still a little off. :)


>> The correct solution, then seems to be updating configure to take
>> libdvdcss into account, and generate dvdread-config accordingly.

So, the libdl issue was something else. Still, is the lack of libcss
check an oversight or intentional to disable broken code?


>> Relatedly, is configure2 still the preferred way, or is it already
>> considered unmaintained?
>
> Good question; and by the way, configure2 always links to libdl while
> the autofoo seems to have better handling of dlopen stuff. Which means
> configure2 will probably fail on freebsd.

I've noticed this as well.

Thanks,

-- 
Yang Zhao



More information about the DVDnav-discuss mailing list