[PATCH] D41021: Don't link NetBSD programs with -ldl in linkXRayRuntimeDeps
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 16:34:38 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rC320220: Don't link NetBSD programs with -ldl in linkXRayRuntimeDeps (authored by kamil).
Repository:
rC Clang
https://reviews.llvm.org/D41021
Files:
lib/Driver/ToolChains/Gnu.cpp
Index: lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- lib/Driver/ToolChains/Gnu.cpp
+++ lib/Driver/ToolChains/Gnu.cpp
@@ -244,7 +244,8 @@
CmdArgs.push_back("-lrt");
CmdArgs.push_back("-lm");
- if (TC.getTriple().getOS() != llvm::Triple::FreeBSD)
+ if (TC.getTriple().getOS() != llvm::Triple::FreeBSD &&
+ TC.getTriple().getOS() != llvm::Triple::NetBSD)
CmdArgs.push_back("-ldl");
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41021.126234.patch
Type: text/x-patch
Size: 460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171209/e5ff4501/attachment.bin>
More information about the llvm-commits
mailing list