[CMake][cygming] Disable --out-implib from executables.

It doesn't make sense even with --export-all-symbols.

llvm-svn: 204017
This commit is contained in:
NAKAMURA Takumi 2014-03-16 13:51:24 +00:00
parent 6107968f55
commit f81612381e
1 changed files with 9 additions and 0 deletions

View File

@ -399,6 +399,15 @@ if(NOT CYGWIN AND NOT WIN32)
endif()
endif()
if(CYGWIN OR MINGW)
# Prune --out-implib from executables. It doesn't make sense even
# with --export-all-symbols.
string(REGEX REPLACE "-Wl,--out-implib,[^ ]+ " " "
CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE}")
string(REGEX REPLACE "-Wl,--out-implib,[^ ]+ " " "
CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE}")
endif()
if(MSVC)
# Remove flags here, for exceptions and RTTI.
# Each target property or source property should be responsible to control