BUG: Need to use the -c option for implib to produce case-sensitive symbols in the .lib files.
This commit is contained in:
parent
e16d47c91a
commit
387bcc5d20
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue