1
0
Bill Hoffman 17 жил өмнө
parent
commit
cf5609221b

+ 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