[llvm-dev] Using LLD to link against third-party libraries? How?

blubee blubeeme via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 11 12:10:36 PST 2018


The documentation on that github page says c++14

make sure your
CXXFLAGS have -std=c++14
LDFLAGS have -fuse-ld=lld -lc++ -lc++abi -lm -lc

Going forward If the link fails u have to provide more information as to
what errors ur getting.

Best

On Wed, Dec 12, 2018 at 4:02 AM Osman Zakir via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> I already mentioned what flag I tried.  It's in the first email in this
> thread.  And I want to link against Boost.System and the Jinja2Cpp library
> (the latter's documentation can be found here:
> https://github.com/flexferrum/Jinja2Cpp .  And I also have some GUI
> applications using FLTK as well that I want to try to build using LLVM as
> well, so I'll have to know how to link against FLFK's libraries too.
> <https://github.com/flexferrum/Jinja2Cpp>
> GitHub - flexferrum/Jinja2Cpp: Jinja2 C++ (and for C++) almost
> full-conformance template engine implementation
> <https://github.com/flexferrum/Jinja2Cpp>
> Join GitHub today. GitHub is home to over 28 million developers working
> together to host and review code, manage projects, and build software
> together.
> github.com
>
> ------------------------------
> *From:* blubee blubeeme <gurenchan at gmail.com>
> *Sent:* Wednesday, December 12, 2018 12:54 AM
> *To:* Osman Zakir
> *Cc:* llvm-dev
> *Subject:* Re: [llvm-dev] Using LLD to link against third-party
> libraries? How?
>
> That depends on the library that you'd like to link against, it's usually
> in the documentation of that project.
>
> What project are you trying to link and what linker flags have you tried
> so far?
>
> Best
>
> On Wed, Dec 12, 2018 at 3:49 AM Osman Zakir via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
> I add the -fuse-ld=lld flag to the compiler command line itself.   And I
> included LLD when I built LLVM (I checked out the mono repo and built that
> version).
>
> What command line arguments should I pass to LLD when I want to link
> against third-party libraries?  That's what I'm asking.
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181212/f9378a90/attachment.html>


More information about the llvm-dev mailing list