From 24edf0bab9bd07ff2a178c99231fb4d5dd8f293d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 13 Jan 2018 09:37:11 +0300 Subject: more missed patches --- sys-devel/llvm/.llvm-5.0.9999.ebuild.swp | Bin 16384 -> 0 bytes .../libcxx/files/libcxx-3.9-cmake-link-flags.patch | 23 +++++++++++++++++++++ 2 files changed, 23 insertions(+) delete mode 100644 sys-devel/llvm/.llvm-5.0.9999.ebuild.swp create mode 100644 sys-libs/libcxx/files/libcxx-3.9-cmake-link-flags.patch diff --git a/sys-devel/llvm/.llvm-5.0.9999.ebuild.swp b/sys-devel/llvm/.llvm-5.0.9999.ebuild.swp deleted file mode 100644 index 13d4ee7..0000000 Binary files a/sys-devel/llvm/.llvm-5.0.9999.ebuild.swp and /dev/null differ 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) -- cgit v1.2.3