]> granicus.if.org Git - clang/commit
For linking on FreeBSD, don't add a hardcoded "-L/usr/lib", but
authorRoman Divacky <rdivacky@freebsd.org>
Tue, 1 Mar 2011 17:53:14 +0000 (17:53 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Tue, 1 Mar 2011 17:53:14 +0000 (17:53 +0000)
commit58e5ac9d41d8186bea92e892d572e2eea28d3f9c
tree3d37c8fdfe7af6e1af0cb351028239acd675b4ec
parentcfe9af250f466e7e38becea4428990448ae07737
For linking on FreeBSD, don't add a hardcoded "-L/usr/lib", but
retrieve the library paths from the ToolChain object instead.

Copy the relevant code from linuxtools::Link::ConstructJob(), and
replace the std::string stuff with llvm::StringRef, while we're here.

Patch by Dimitry Andric!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126757 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp