[CMake] CMake and portable dynamic library loading?

Alan W. Irwin irwin at beluga.phys.uvic.ca
Tue Oct 17 02:10:35 EDT 2006


Andrey said:
> On Mon, Oct 16, 2006 at 11:24:58AM -0700, Alan W. Irwin wrote:
>> The obvious solution is to build it internally. When KDE used this
>> library was that the option chosen? 
>True for SIM.
>
>> If so, could you point me to the CMake files used to build libltdl? 
>We switched from libltdl prior to using cmake, but Makefile.am for it was
>pretty simple:
>
>noinst_HEADERS = ltdl.h
>noinst_LTLIBRARIES = libltdl.la
>CLEANFILES = libltdl.la
>libltdl_la_SOURCES = ltdl.c
>libltdl_la_LIBADD = $(LIBADD_DL)

Thanks for that information which (God help me) I still understand from my
knowledge of the old autotools build system for PLplot. Clearly, libltdl is
straightforward to build once you have configured the libraries that it
wraps for a given platform.  But that is the key question; for the above
Makefile.am fragment that information is hidden in $(LIBADD_DL). I am having
considerable difficulty trying to understand the m4 language in acinclude.m4
that determines LIBADD_DL.  So if some project has already done all the
necessary cross-platform library configuration of libltdl in the CMake
language I would be grateful if somebody in the know for that project (e.g.,
Alex for KDE) would share that information.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list