diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 10fc8499a92ea8..4a7639c51121d9 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -969,16 +969,6 @@ if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "SunOS") add_definitions("-D_FILE_OFFSET_BITS=64") endif() -# Work around a broken bfd ld behavior. When linking a binary with a -# foo.so library, it will try to find any library that foo.so uses and -# 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 AND NOT CMAKE_SYSTEM_NAME MATCHES "SunOS|AIX|OS390") - set(CMAKE_EXE_LINKER_FLAGS - "${CMAKE_EXE_LINKER_FLAGS} -Wl,-allow-shlib-undefined") -endif() - set(CMAKE_INCLUDE_CURRENT_DIR ON) include_directories( ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR})