[cmake-developers] Watcom updates in 3.1 break linking usable code

J Decker d3ck0r at gmail.com
Sat Nov 1 19:03:41 EDT 2014


wlink uses the option 'system nt_dll' if it builds a DLL; if this is not
specified, the resulting file generates exceptions.

This was moved from ...

/ ---- modules/platform/windows-wcl386.cmake ------
set(CMAKE_CXX_CREATE_SHARED_LIBRARY
 "wlink ${CMAKE_START_TEMP_FILE} ${CMAKE_WLINK_QUIET} name <TARGET>
<LINK_FLAGS> option implib=<TARGET_IMPLIB> file {<OBJECTS>}
<LINK_LIBRARIES> ${CMAKE_END_TEMP_FILE}")

/------ used to be ----- /
set(CMAKE_CXX_CREATE_SHARED_MODULE
 "wlink ${CMAKE_START_TEMP_FILE} system nt_dll  ${CMAKE_WLINK_QUIET} name
'<TARGET_UNQUOTED>' <LINK_FLAGS> option implib=<TARGET_IMPLIB> option
caseexact  file {<OBJECTS>} <LINK_LIBRARIES> ${CMAKE_END_TEMP_FILE}")
----------------

... to a variable

CMAKE_SHARED_LINKER_FLAGS_INIT

but I don't see the latter flag ever being used.

So the generator does not output 'system nt_dll' when building shared
library targets.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141101/c4aa7c01/attachment.html>


More information about the cmake-developers mailing list