summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-09-25 21:02:06 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-09-25 21:02:06 (GMT)
commitcf5609221b9ce49f12e46ae3b0ea169808567625 (patch)
treeea45eaaa08813a5f3bb91bf8195cc100c418df4a
parent5a67665f682849a88f61aa85b037c29fb5c526ea (diff)
downloadCMake-cf5609221b9ce49f12e46ae3b0ea169808567625.zip
CMake-cf5609221b9ce49f12e46ae3b0ea169808567625.tar.gz
CMake-cf5609221b9ce49f12e46ae3b0ea169808567625.tar.bz2
BUG: fix for 7704
-rw-r--r--Modules/Platform/Windows-gcc.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-gcc.cmake b/Modules/Platform/Windows-gcc.cmake
index 51857eb..fdd5002 100644
--- a/Modules/Platform/Windows-gcc.cmake
+++ b/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