Grang, Mandeep Singh
2015-May-01 21:37 UTC
[LLVMdev] How to specify LIBRARY_PATH for cross compiler
Hi, In clang/lib/Driver/Tools.cpp the -B<LIBRARY_PATH> option is only supported for native compilers. How do we specify the LIBRARY_PATH for cross compilers? The following code snipped from Tools.cpp is what controls support for -B option for native compilers: /if (!TC.isCrossCompiling())// // addDirectoryList(Args, CmdArgs, "-L", "LIBRARY_PATH"); /I tried specifying the LIBRARY_PATH using the -L option but that does not work. Thanks, Mandeep // -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150501/4053b9c1/attachment.html>
Grang, Mandeep Singh
2015-May-04 19:05 UTC
[LLVMdev] How to specify LIBRARY_PATH for cross compiler
Ping! On 5/1/2015 2:37 PM, Grang, Mandeep Singh wrote:> Hi, > > In clang/lib/Driver/Tools.cpp the -B<LIBRARY_PATH> option is only > supported for native compilers. How do we specify the LIBRARY_PATH for > cross compilers? > > The following code snipped from Tools.cpp is what controls support for > -B option for native compilers: > /if (!TC.isCrossCompiling())// > // addDirectoryList(Args, CmdArgs, "-L", "LIBRARY_PATH"); > > /I tried specifying the LIBRARY_PATH using the -L option but that does > not work. > > Thanks, > Mandeep >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150504/67de39ae/attachment.html>
Renato Golin
2015-May-05 14:02 UTC
[LLVMdev] How to specify LIBRARY_PATH for cross compiler
On 1 May 2015 at 22:37, Grang, Mandeep Singh <mgrang at codeaurora.org> wrote:> I tried specifying the LIBRARY_PATH using the -L option but that does not > work.Hi Mandeep, Can you provide more information? How are you cross compiling, what libraries do you want to find, and what is your target system. I'm assuming this is x86_64 -> AArch64. I'm also assuming you read the two documentations we have about cross compiling: http://llvm.org/docs/HowToCrossCompileLLVM.html http://clang.llvm.org/docs/CrossCompilation.html cheers, --renato