On Tue, Jul 31, 2012 at 12:47 PM, Michael Goffioul
<
address@hidden> wrote:
> On Tue, Jul 31, 2012 at 6:40 PM, Max <
address@hidden> wrote:
>>
>> On 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.
>>
>> It looks to me like 'llvm-config --ldflags' contains all of the flags
>> 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.
>
>
> They may be required when llvm is built statically. Building llvm as a
> dynamic library is supported under Windows (not sure about cygwin).
>
> Michael.
>