|
From: | Michael Goffioul |
Subject: | Re: Using 'llvm-config --ldflags' ? |
Date: | Tue, 31 Jul 2012 18:47:43 +0100 |
It looks to me like 'llvm-config --ldflags' contains all of the flagsOn Tue, Jul 31, 2012 at 11:06 AM, Michael Goffioul
<address@hidden> wrote:
> Max,
>
> Is there a reason not to use 'llvm-config --ldflags' instead of
> '-L`llvm-config --libdir`'? It appears that using --ldflags also adds system
> libraries detected during the llvm configuration step, which may be required
> when linking liboctinterp.
>
> Michael.
which llvm was linked with. For me this includes -lffi and -ldl. These
libraries may be needed to build llvm, but the are not required when
linking with llvm. So I do not want to use 'llvm-config --ldflags'
because it includes libraries that we do not need to link to.
[Prev in Thread] | Current Thread | [Next in Thread] |