llvm.org GIT mirror llvm / c25b016
Merging r242993: ------------------------------------------------------------------------ r242993 | yrnkrn | 2015-07-23 01:06:12 -0700 (Thu, 23 Jul 2015) | 11 lines Avoid using -Wl,-z,defs on Cygwin. Prior to CMAKE 2.8.4 that was covered by the WIN32 conditional but from 2.8.4 CMAKE no longer defined WIN32 when running under Cygwin and it needs its own test. Patch by Martell Malone! http://reviews.llvm.org/D11347 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@243023 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
130130
131131 # Pass -Wl,-z,defs. This makes sure all symbols are defined. Otherwise a DSO
132132 # build might work on ELF but fail on MachO/COFF.
133 if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32 OR
133 if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32 OR CYGWIN OR
134134 ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") AND
135135 NOT LLVM_USE_SANITIZER)
136136 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")