]> granicus.if.org Git - clang/commitdiff
Driver/FreeBSD: Add libexec to program search paths, to workaround some build
authorDaniel Dunbar <daniel@zuster.org>
Tue, 15 Jun 2010 15:03:31 +0000 (15:03 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 15 Jun 2010 15:03:31 +0000 (15:03 +0000)
problem; patch by Ed Schouten.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105996 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 9accfe75167a9914282fa2ad17e9f8265ababfe3..a31978c0bccfcc48c37dd5f286ffe68a4bca6074 100644 (file)
@@ -848,6 +848,8 @@ Tool &OpenBSD::SelectTool(const Compilation &C, const JobAction &JA) const {
 
 FreeBSD::FreeBSD(const HostInfo &Host, const llvm::Triple& Triple, bool Lib32)
   : Generic_GCC(Host, Triple) {
+  getProgramPaths().push_back(getDriver().Dir + "/../libexec");
+  getProgramPaths().push_back("/usr/libexec");
   if (Lib32) {
     getFilePaths().push_back(getDriver().Dir + "/../lib32");
     getFilePaths().push_back("/usr/lib32");