chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] -ldl -ldl in Autoconf


From: Brandon J. Van Every
Subject: [Chicken-users] -ldl -ldl in Autoconf
Date: Thu, 07 Sep 2006 00:01:12 -0700
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

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

reply via email to

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