diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-01-13 09:37:11 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-01-13 09:37:11 +0300 |
commit | 24edf0bab9bd07ff2a178c99231fb4d5dd8f293d (patch) | |
tree | cd8f4875f8476c0907db2d0aac914a389bd2c41c | |
parent | 66df4a402d0ea0716f25e9af04105c038cfa39a9 (diff) |
more missed patches
-rw-r--r-- | sys-devel/llvm/.llvm-5.0.9999.ebuild.swp | bin | 16384 -> 0 bytes | |||
-rw-r--r-- | sys-libs/libcxx/files/libcxx-3.9-cmake-link-flags.patch | 23 |
2 files changed, 23 insertions, 0 deletions
diff --git a/sys-devel/llvm/.llvm-5.0.9999.ebuild.swp b/sys-devel/llvm/.llvm-5.0.9999.ebuild.swp Binary files differdeleted file mode 100644 index 13d4ee7..0000000 --- a/sys-devel/llvm/.llvm-5.0.9999.ebuild.swp +++ /dev/null diff --git a/sys-libs/libcxx/files/libcxx-3.9-cmake-link-flags.patch b/sys-libs/libcxx/files/libcxx-3.9-cmake-link-flags.patch new file mode 100644 index 0000000..bef5bc1 --- /dev/null +++ b/sys-libs/libcxx/files/libcxx-3.9-cmake-link-flags.patch @@ -0,0 +1,23 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d618e83..0e76525 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -293,6 +293,18 @@ remove_flags(-DNDEBUG -UNDEBUG -D_DEBUG + # so they don't get transformed into -Wno and -errors respectivly. + remove_flags(-Wno-pedantic -pedantic-errors -pedantic) + ++# FIXME: this is cribbed from HandleLLVMOptions.cmake. ++if(LIBCXX_STANDALONE_BUILD) ++ # Pass -Wl,-z,defs. This makes sure all symbols are defined. Otherwise a DSO ++ # build might work on ELF but fail on MachO/COFF. ++ if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32 OR CYGWIN OR ++ ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ++ ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") AND ++ NOT LLVM_USE_SANITIZER) ++ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs") ++ endif() ++endif() ++ + # Required flags ============================================================== + add_compile_flags_if_supported(-std=c++11) + if (NOT MSVC AND NOT LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG) |