libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding the right flags to a program which dlopens


From: Bob Friesenhahn
Subject: Re: Adding the right flags to a program which dlopens
Date: Wed, 2 Jun 2004 09:29:00 -0500 (CDT)

On Wed, 2 Jun 2004, 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.

Cons:

  - Need to distribute libltdl source with your package.
  - Need to enable configuring/building/using libltdl in your package.

Pros:

  - Cross-platform module loading portability.
  - Module library dependencies for OSs that otherwise don't support
    them.
  - API is similar to using dlopen(), but with some value-added
    features.
  - Provides a "module" paradigm for static builds as a fall-back or
    to assist with debugging.

Bob
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]