aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Driver/ToolChains.cpp7
1 files 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 {