[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding the right flags to a program which dlopens
From: |
Albert Chin |
Subject: |
Re: Adding the right flags to a program which dlopens |
Date: |
Wed, 2 Jun 2004 12:51:31 -0500 |
User-agent: |
Mutt/1.5.6i |
On Wed, Jun 02, 2004 at 04:14:23PM +0200, Stephane Bortzmeyer wrote:
> On Wed, Jun 02, 2004 at 08:59:33AM -0500,
> Bob Friesenhahn <address@hidden> wrote
> a message of 30 lines which said:
>
> > If you use libltdl to do module loading rather than raw dlopen()
>
> I hesitate. What are the pros and cons? I do not really want to add
> yet another dependency to my program.
Does this work:
AC_SEARCH_LIBS(dlopen, [-ldl])
This will add -ldl to $LIBS if needed. I think $LIBS is automatically
linked into the main program.
libltdl isn't going to buy you much on the platforms you're interested
in.
--
albert chin (address@hidden)
Re: Adding the right flags to a program which dlopens, Gary V. Vaughan, 2004/06/03