summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-01-13 09:37:11 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-01-13 09:37:11 +0300
commit24edf0bab9bd07ff2a178c99231fb4d5dd8f293d (patch)
treecd8f4875f8476c0907db2d0aac914a389bd2c41c
parent66df4a402d0ea0716f25e9af04105c038cfa39a9 (diff)
more missed patches
-rw-r--r--sys-devel/llvm/.llvm-5.0.9999.ebuild.swpbin16384 -> 0 bytes
-rw-r--r--sys-libs/libcxx/files/libcxx-3.9-cmake-link-flags.patch23
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
deleted file mode 100644
index 13d4ee7..0000000
--- a/sys-devel/llvm/.llvm-5.0.9999.ebuild.swp
+++ /dev/null
Binary files 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)