This patch seems to fix the problem:
--- cmake-2.4.8.orig/Source/cmMakefileExecutableTargetGenerator.cxx
+++ cmake-2.4.8/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -227,11 +227,6 @@
std::string flags;
std::string linkFlags;
- // Add flags to deal with shared libraries. Any library being
- // linked in might be shared, so always use shared flags for an
- // executable.
- this->LocalGenerator->AddSharedFlags(linkFlags, linkLanguage, true);
-
// Add flags to create an executable.
this->LocalGenerator->
AddConfigVariableFlags(linkFlags, "CMAKE_EXE_LINKER_FLAGS",
--- END ---Any special options needed for linking with shared libraries can be put in CMAKE_SHARED_LIBRARY_LINK_C_FLAGS. Ben. -- Ben Hutchings Absolutum obsoletum. (If it works, it's out of date.) - Stafford Beer
signature.asc
Description: This is a digitally signed message part

