From bc534664d008bc98d5ce76c053921bf5ee21fc65 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 2 Apr 2009 18:30:04 +0000 Subject: [PATCH] Driver: Tweak search paths for FreeBSD. - Patch by Pawel Worach! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68332 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 3b129cfad1..daa45d7a34 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -373,10 +373,13 @@ DerivedArgList *Generic_GCC::TranslateArgs(InputArgList &Args) const { FreeBSD::FreeBSD(const HostInfo &Host, const char *Arch, const char *Platform, const char *OS, bool Lib32) : Generic_GCC(Host, Arch, Platform, OS) { - if (Lib32) + if (Lib32) { getFilePaths().push_back(getHost().getDriver().Dir + "/../lib32"); - else + getFilePaths().push_back("/usr/lib32"); + } else { getFilePaths().push_back(getHost().getDriver().Dir + "/../lib"); + getFilePaths().push_back("/usr/lib"); + } } Tool &FreeBSD::SelectTool(const Compilation &C, const JobAction &JA) const { -- 2.50.1