[llvm] r240308 - Do not pass -allow-shlib-undefined to the Solaris linker.

Rafael Espindola rafael.espindola at gmail.com
Mon Jun 22 11:24:01 PDT 2015


Author: rafael
Date: Mon Jun 22 13:24:01 2015
New Revision: 240308

URL: http://llvm.org/viewvc/llvm-project?rev=240308&view=rev
Log:
Do not pass -allow-shlib-undefined to the Solaris linker.

Patch by Xan López.

Modified:
    llvm/trunk/CMakeLists.txt

Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=240308&r1=240307&r2=240308&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Mon Jun 22 13:24:01 2015
@@ -530,7 +530,7 @@ endif()
 # check its symbols. This is wasteful (the check was done when foo.so
 # was created) and can fail since it is not the dynamic linker and
 # doesn't know how to handle search paths correctly.
-if (UNIX AND NOT APPLE)
+if (UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
   set(CMAKE_EXE_LINKER_FLAGS
       "${CMAKE_EXE_LINKER_FLAGS} -Wl,-allow-shlib-undefined")
 endif()






More information about the llvm-commits mailing list