diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake index e5f86d9f3..6d8494073 100644 --- a/Modules/Platform/Windows-GNU.cmake +++ b/Modules/Platform/Windows-GNU.cmake @@ -67,6 +67,8 @@ macro(__windows_compiler_gnu lang) endforeach(type) endif() + set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "") # No -fPIC on Windows + # Binary link rules. set(CMAKE_${lang}_CREATE_SHARED_MODULE " -o ${CMAKE_GNULD_IMAGE_VERSION} ")