Re: Using SA-Exim with FreeBSD Exim port

Juha Saarinen <[email protected]>
Newsgroups gmane.mail.exim.spamassassin
Message-ID <[email protected]>
Juha Saarinen wrote:

> ... which makes me think "-ldl" is a Linuxism introduced by the 
> localscan_dlopen patch. Could someone fill me in on what it does, and 
> whether or not "-ldl" is necessary?

Did a bit of research, and -ldl seems to be a Linuxism that can be 
omitted on FreeBSD:

http://www.cygwin.com/ml/cygwin/2003-07/msg00505.html

http://lists.freebsd.org/pipermail/freebsd-questions/2003-September/019908.html

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2003-09/2303.html


DLOPEN(3)              FreeBSD Library Functions Manual 
DLOPEN(3)

NAME
      dlopen, dlsym, dlfunc, dlerror, dlclose -- programmatic interface 
to the
      dynamic linker

LIBRARY
      Standard C Library (libc, -lc)

SYNOPSIS
      #include <dlfcn.h>

      void *
      dlopen(const char *path, int mode);

      void *
      dlsym(void * restrict handle, const char * restrict symbol);

      dlfunc_t
      dlfunc(void * restrict handle, const char * restrict symbol);

      const char *
      dlerror(void);

      int
      dlclose(void *handle);


Next question: how to automagically strip the -ldl from LFLAGS (should 
really be LDFLAGS I think) when building on FreeBSD?

-- 
Juha
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.