|
From: | Howard Chu |
Subject: | Re: how to link with installed libltdl? |
Date: | Thu, 01 Sep 2005 03:30:21 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050829 SeaMonkey/1.1a |
Andreas Jellinghaus wrote:
Howard Chu wrote:In OpenLDAP's configure.in we use... so does libltdl never need any libraries linked to it? like "-ldl" on some systemsor something else? all that complexity is usualy hidden in an m4 macro package,a libfoo-config script or a pkgconfig/libfoo.pc file. I guess I should better probe for libdl and link with it, too? anthing else?
If you use libtool for linking, and the libltdl.la file is installed, then dependencies are taken care of automatically. If you're not using libtool for linking, then you're making a mistake. The point of using libtool and libltdl is to avoid having to check for other system-specific dependencies. Checking for libdl is (a) redundant since libtool's configure script would have already looked for it and (b) insufficient since other platforms may use some other name for their dynamic linking support library.
-- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc OpenLDAP Core Team http://www.openldap.org/project/
[Prev in Thread] | Current Thread | [Next in Thread] |