pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
clang-netbsd: Link with -lkvm sanitized programs on NetBSD
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Thu Jan 18 08:55:23 2018 +0100
Changeset: f2f2c1de42b862b629e78147bbe12344699b41b3
Modified Files:
clang-netbsd/distinfo
Added Files:
clang-netbsd/patches/patch-lib_Driver_ToolChains_CommonArgs.cpp
Log Message:
clang-netbsd: Link with -lkvm sanitized programs on NetBSD
The sanitizers are checking kvm API/ABI.
Sponsored by <The NetBSD Foundation>
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f2f2c1de42b862b629e78147bbe12344699b41b3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
clang-netbsd/distinfo | 1 +
.../patches/patch-lib_Driver_ToolChains_CommonArgs.cpp | 14 ++++++++++++++
2 files changed, 15 insertions(+)
diffs:
diff --git a/clang-netbsd/distinfo b/clang-netbsd/distinfo
index b0f519db5d..ca7a149afa 100644
--- a/clang-netbsd/distinfo
+++ b/clang-netbsd/distinfo
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.35 2015/09/11 01:21:57 tnn Exp $
SHA1 (patch-lib_Basic_Targets_OSTargets.h) = 9d229074c8e36be37176349971667817b227eaa5
+SHA1 (patch-lib_Driver_ToolChains_CommonArgs.cpp) = 6aa37041823a1dbeec18472075b011a320e8c562
SHA1 (patch-test_Sema_128bitfloat.cpp) = cc11582dd9495b603a22ef73609ab04f65324da2
SHA1 (patch-tools_clang-format_CMakeLists.txt) = f119d2a94cbfb8c00a285d1aa7789ed26f8309cf
diff --git a/clang-netbsd/patches/patch-lib_Driver_ToolChains_CommonArgs.cpp b/clang-netbsd/patches/patch-lib_Driver_ToolChains_CommonArgs.cpp
new file mode 100644
index 0000000000..a639651ce3
--- /dev/null
+++ b/clang-netbsd/patches/patch-lib_Driver_ToolChains_CommonArgs.cpp
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- lib/Driver/ToolChains/CommonArgs.cpp.orig 2018-01-18 07:53:42.722099826 +0000
++++ lib/Driver/ToolChains/CommonArgs.cpp
+@@ -555,6 +555,9 @@ void tools::linkSanitizerRuntimeDeps(con
+ // Required for backtrace on some OSes
+ if (TC.getTriple().getOS() == llvm::Triple::NetBSD)
+ CmdArgs.push_back("-lexecinfo");
++ // Required for backtrace on some OSes
++ if (TC.getTriple().getOS() == llvm::Triple::NetBSD)
++ CmdArgs.push_back("-lkvm");
+ }
+
+ static void
Home |
Main Index |
Thread Index |
Old Index