[cmake-developers] [PATCH] New module FindLibDl
Roger Leigh
rleigh at codelibre.net
Wed Nov 19 14:53:25 EST 2014
On Wed, Nov 19, 2014 at 08:35:53PM +0100, Nils Gladitz wrote:
> On 19.11.2014 20:23, Roger Leigh wrote:
> >libdl (for dlopen, dlsym) is part of (or an extention to) the
> >standard library/linker on many platforms. It doesn't currently
> >have support in CMake, though there are a few independent
> >implementations shown up by Google. Given that there are
> >several upstreams and that it's a basic component of several
> >different POSIX systems, having support in CMake would be quite
> >beneficial.
>
> There is http://www.cmake.org/cmake/help/v3.0/variable/CMAKE_DL_LIBS.html
> which is set up by the platform modules.
That's great to know, thanks.
However, do I still need to independently check for <dlfcn.h>?
How do I know that I have a working dlopen? E.g., on FreeBSD
where CMAKE_DL_LIBS would be empty how do I know it's there
without a functional check?
Thanks,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
More information about the cmake-developers
mailing list