BUG: Need to use the -c option for implib to produce case-sensitive symbols in the .lib files.

This commit is contained in:
Brad King 2005-06-29 12:07:09 -04:00
parent e16d47c91a
commit 387bcc5d20
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ SET (CMAKE_MANGLE_OBJECT_FILE_NAMES "ON")
# create a shared C++ library
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
"<CMAKE_CXX_COMPILER> ${CMAKE_START_TEMP_FILE}-e<TARGET> -tWD <LINK_FLAGS> -tWR <LINK_LIBRARIES> <OBJECTS>${CMAKE_END_TEMP_FILE}"
"implib -w <TARGET_BASE>.lib <TARGET_BASE>.dll"
"implib -c -w <TARGET_BASE>.lib <TARGET_BASE>.dll"
)
SET(CMAKE_CXX_CREATE_SHARED_MODULE ${CMAKE_CXX_CREATE_SHARED_LIBRARY})
@ -35,7 +35,7 @@ SET(CMAKE_CXX_CREATE_SHARED_MODULE ${CMAKE_CXX_CREATE_SHARED_LIBRARY})
# create a C shared library
SET(CMAKE_C_CREATE_SHARED_LIBRARY
"<CMAKE_C_COMPILER> ${CMAKE_START_TEMP_FILE}-e<TARGET> -tWD <LINK_FLAGS> -tWR <LINK_LIBRARIES> <OBJECTS>${CMAKE_END_TEMP_FILE}"
"implib -w <TARGET_BASE>.lib <TARGET_BASE>.dll"
"implib -c -w <TARGET_BASE>.lib <TARGET_BASE>.dll"
)
# create a C shared module just copy the shared library rule