[PATCH] D42467: FreeBSD needs also execinfo and libutil

David CARLIER via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 04:09:43 PST 2018


devnexen updated this revision to Diff 131220.
devnexen retitled this revision from "FreeBSD needs also execinfo" to "FreeBSD needs also execinfo and libutil".
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
@@ -550,10 +550,12 @@
       TC.getTriple().getOS() != llvm::Triple::RTEMS)
     CmdArgs.push_back("-ldl");
   // Required for forkpty 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("-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.131220.patch
Type: text/x-patch
Size: 909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180124/f4882b76/attachment.bin>


More information about the cfe-commits mailing list