From 37dc4bdc6e96ac66c0c95c3c977498a502604fe1 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 18 Oct 2005 13:25:54 -0400 Subject: COMP: On mingw, -fPIC is not necessary and it actually produces warnings --- Modules/Platform/Windows-gcc.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/Platform/Windows-gcc.cmake b/Modules/Platform/Windows-gcc.cmake index 7ab664b..3fb8186 100644 --- a/Modules/Platform/Windows-gcc.cmake +++ b/Modules/Platform/Windows-gcc.cmake @@ -7,6 +7,7 @@ SET(CMAKE_SHARED_MODULE_PREFIX "lib") # lib SET(CMAKE_SHARED_MODULE_SUFFIX ".dll") # .so SET(CMAKE_DL_LIBS "") SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic +SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "") # -pic 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 -- cgit v0.12