>> > 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.
>> 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).
Can Windows use pkg-config? I find llvm-config to be very badly
behaved, and I have half a mind to write llvm.pc. Will this work for
Windows?
Yes, I have pkg-config, but afaik there's no llvm.pc coming with llvm, is it? At least it seems there's none on my F17 box with llvm-3.0. To be honest, I don't see the big deal in using --ldflags. It'll pull "-lffi -ldl"? So what...
Michael.