浏览代码

BUG: fix for 7704

Bill Hoffman 17 年之前
父节点
当前提交
cf5609221b
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Modules/Platform/Windows-gcc.cmake

+ 6 - 0
Modules/Platform/Windows-gcc.cmake

@@ -15,6 +15,12 @@ SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")       # -shared
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")         # +s, flag for exe link to use shared lib
 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")       # -rpath
 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "")   # : or empty
+
+SET(CMAKE_SHARED_MODULE_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}")               # -pic 
+SET(CMAKE_SHARED_MODULE_CXX_FLAGS 
+  "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}")           # -pic 
+SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS 
+  "${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS}") # -shared
 SET(CMAKE_LIBRARY_PATH_FLAG "-L")
 SET(CMAKE_LINK_LIBRARY_FLAG "-l")
 SET(CMAKE_EXTRA_LINK_EXTENSIONS ".lib") # MinGW can also link to a MS .lib