[llvm-commits] [patch] Fix library path on linker command line for FreeBSD

Dimitry Andric dimitry at andric.com
Fri Feb 25 12:21:48 PST 2011


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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: clang-freebsd-libpath-1.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110225/65642b91/attachment.ksh>


More information about the llvm-commits mailing list