John Cowan wrote:
Brandon J. Van Every scripsit:

  
I have a vague memory of -ldl appearing twice under Autoconf.  I'll look 
at this.
    

It does appear twice, but in the CMake build it doesn't appear at all,
at least not in those defines.
  

I believe Autoconf is handling -ldl wrong.  Here's my CMake code:


CHECK_INCLUDE_FILE(dlfcn.h HAVE_DLFCN_H)
IF(HAVE_DLFCN_H)
  # The presence of dlfcn.h does NOT mean that -ldl is used.
  # For instance, Cygwin has dlfcn.h and does not use -ldl.
  FIND_LIBRARY(DL_LIBRARY dl)
  IF(DL_LIBRARY)
    SET(MORE_LIBS ${MORE_LIBS} dl)
    SET(MORE_STATIC_LIBS ${MORE_STATIC_LIBS} dl)
  ENDIF(DL_LIBRARY)
ENDIF(HAVE_DLFCN_H)



Cheers,
Brandon Van Every


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to