Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#29 Check for libdl

closed-accepted
Roy Rankin
None
5
2013-03-02
2013-01-21
Ralf Horstmann
No

On OpenBSD, dlopen() and friends are provided within libc and there is no libdl. So instead of linking libdl unconditionally, check for presence of dlopen in libdl and only if present link against it. The patch has been tested on OpenBSD-5.2-current and Debian/wheezy.

I believe NetBSD doesn't provide libdl as well according to their documentation, so the patch could help there as well. FreeBSD might provide libdl for compatibility, so this patch shouldn't hurt.

The patch is against trunk revision 2189.

Discussion

  • Roy Rankin
    Roy Rankin
    2013-03-02

    • assigned_to: nobody --> roy_r_rankin
    • status: open --> closed-accepted
     


Anonymous


Cancel   Add attachments