commit | 58e5ac9d41d8186bea92e892d572e2eea28d3f9c | [log] [tgz] |
---|---|---|
author | Roman Divacky <rdivacky@freebsd.org> | Tue Mar 01 17:53:14 2011 +0000 |
committer | Roman Divacky <rdivacky@freebsd.org> | Tue Mar 01 17:53:14 2011 +0000 |
tree | 3d37c8fdfe7af6e1af0cb351028239acd675b4ec | |
parent | cfe9af250f466e7e38becea4428990448ae07737 [diff] |
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