[CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread Brandon J. Van Every
I built a CMake 2.4.2 for Cygwin from sources. I used the Unix linefeed download, cmake-2.4.2.tar.gz. I used an earlier Cygwin CMake package to build it. Now I am using this Cygwin CCMake 2.4.2 to generate my Chicken build. When it comes time to link a .dll, it fails with: Linking C

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread William A. Hoffman
At 02:48 AM 6/1/2006, Brandon J. Van Every wrote: I built a CMake 2.4.2 for Cygwin from sources. I used the Unix linefeed download, cmake-2.4.2.tar.gz. I used an earlier Cygwin CMake package to build it. Now I am using this Cygwin CCMake 2.4.2 to generate my Chicken build. When it comes

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread Brandon J. Van Every
Brad King wrote: Brandon J. Van Every wrote: I built a CMake 2.4.2 for Cygwin from sources. I used the Unix linefeed download, cmake-2.4.2.tar.gz. I used an earlier Cygwin CMake package to build it. Now I am using this Cygwin CCMake 2.4.2 to generate my Chicken build. When it comes time

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread William A. Hoffman
At 01:22 PM 6/1/2006, Brandon J. Van Every wrote: Brad King wrote: Brandon J. Van Every wrote: I built a CMake 2.4.2 for Cygwin from sources. I used the Unix linefeed download, cmake-2.4.2.tar.gz. I used an earlier Cygwin CMake package to build it. Now I am using this Cygwin CCMake 2.4.2 to

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread Brandon J. Van Every
William A. Hoffman wrote: At 01:22 PM 6/1/2006, Brandon J. Van Every wrote: Brad King wrote: Brandon J. Van Every wrote: I built a CMake 2.4.2 for Cygwin from sources. I used the "Unix linefeed" download, cmake-2.4.2.tar.gz. I used an

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread Brad King
Brandon J. Van Every wrote: I have investigated, and I'm not convinced that the -ldl is coming from my code. My code is: CHECK_INCLUDE_FILE(dl.h HAVE_DL_H) IF(HAVE_DL_H) ADD_DEFINITIONS(-DHAVE_DL_H) SET(EXTRA_LIBS ${EXTRA_LIBS} ldl) ENDIF(HAVE_DL_H) There is no dl.h on any hard drive of

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread Brandon J. Van Every
Brad King wrote: Brandon J. Van Every wrote: I have investigated, and I'm not convinced that the -ldl is coming from my code. My code is: CHECK_INCLUDE_FILE(dl.h HAVE_DL_H) IF(HAVE_DL_H) ADD_DEFINITIONS(-DHAVE_DL_H) SET(EXTRA_LIBS ${EXTRA_LIBS} ldl) ENDIF(HAVE_DL_H) There is no dl.h on

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread Brad King
Brandon J. Van Every wrote: Brad King wrote: Brandon J. Van Every wrote: I have investigated, and I'm not convinced that the -ldl is coming from my code. My code is: CHECK_INCLUDE_FILE(dl.h HAVE_DL_H) IF(HAVE_DL_H) ADD_DEFINITIONS(-DHAVE_DL_H) SET(EXTRA_LIBS ${EXTRA_LIBS} ldl)

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread William A. Hoffman
At 02:22 PM 6/1/2006, Brandon J. Van Every wrote: When I run ccmake again, it comes back with exactly the same thing. To be very sure of the conclusion, I comment out the entire CHECK_INCLUDE_FILE sequence. Now there is no way for my code to be inserting a -ldl. It still shows up. Try this:

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread Brandon J. Van Every
William A. Hoffman wrote: At 02:22 PM 6/1/2006, Brandon J. Van Every wrote: When I run ccmake again, it comes back with exactly the same thing. To be very sure of the conclusion, I comment out the entire CHECK_INCLUDE_FILE sequence. Now there is no way for my code to be inserting

Re: [CMake] CMake 2.4.2 Cygwin shouldn't have -ldl

2006-06-01 Thread Brandon J. Van Every
Brandon J. Van Every wrote: William A. Hoffman wrote: Try this: add a: message(${EXTRA_LIBS}) Also, make sure you delete the CMakeCache.txt after the change. I'll be darned, EXTRA_LIBS are dl;ws2_32 ws2_32 is from my code, but where is dl coming from? Well crappy