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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to