This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: shared library suffix
- From: Bob Friesenhahn <bfriesen at simple dot dallas dot tx dot us>
- To: Alien999999999 <alien999999999 at users dot sourceforge dot net>
- Cc: automake at gnu dot org
- Date: Sat, 10 Apr 2004 09:59:15 -0500 (CDT)
- Subject: Re: shared library suffix
On Sat, 10 Apr 2004, Alien999999999 wrote:
> In the config.h file, i need to know what the shared library suffix is on the
> configured system. do you guys know how that is accomplished?
>
> the purpose is to use dlopen with a path, so i need to have the complete
> filename of a library, therefor i must know the suffix...
You should use libtool for this task. Automake is designed to work
with libtool to build shared libraries, and libtool supports portable
shared library "dlopen"ing via its libltdl component. Libtool stores
the compile filename of the library in an associated .la file.
Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen