An update will be applied today, Nov30th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 4eba05de authored by Brad King's avatar Brad King
Browse files

Suppress GNU flag -fPIC on Windows

Commit "Modernize GNU compiler info on Windows" (2009-12-02) reorganized
GNU flags on Windows but let -fPIC slip through for compilation of
objects in shared libraries.  While this flag is valid on most GNU
compiler platforms we need to suppress it in Windows-GNU.cmake just as
we already do in CYGWIN-GNU.cmake.
parent 2eeccbe2
...@@ -67,6 +67,8 @@ macro(__windows_compiler_gnu lang) ...@@ -67,6 +67,8 @@ macro(__windows_compiler_gnu lang)
endforeach(type) endforeach(type)
endif() endif()
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "") # No -fPIC on Windows
# Binary link rules. # Binary link rules.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment