[PATCH] D42467: FreeBSD needs also execinfo, libutil and libkvm

David CARLIER via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 14:36:22 PST 2018


devnexen updated this revision to Diff 131359.
devnexen edited the summary of this revision.

Repository:
  rC Clang

https://reviews.llvm.org/D42467

Files:
  lib/Driver/ToolChains/CommonArgs.cpp


Index: lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- lib/Driver/ToolChains/CommonArgs.cpp
+++ lib/Driver/ToolChains/CommonArgs.cpp
@@ -549,11 +549,12 @@
       TC.getTriple().getOS() != llvm::Triple::NetBSD &&
       TC.getTriple().getOS() != llvm::Triple::RTEMS)
     CmdArgs.push_back("-ldl");
-  // Required for forkpty on some OSes
+  // Required for functions like forkpty on some OSes
   if (TC.getTriple().getOS() == llvm::Triple::NetBSD)
     CmdArgs.push_back("-lutil");
   // Required for backtrace on some OSes
-  if (TC.getTriple().getOS() == llvm::Triple::NetBSD)
+  if (TC.getTriple().getOS() == llvm::Triple::NetBSD ||
+      TC.getTriple().getOS() == llvm::Triple::FreeBSD)
     CmdArgs.push_back("-lexecinfo");
   // Required for kvm (kernel memory interface) on some OSes
   if (TC.getTriple().getOS() == llvm::Triple::NetBSD)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42467.131359.patch
Type: text/x-patch
Size: 908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180124/018d3677/attachment-0001.bin>


More information about the cfe-commits mailing list