octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using 'llvm-config --ldflags' ?


From: Jordi Gutiérrez Hermoso
Subject: Re: Using 'llvm-config --ldflags' ?
Date: Tue, 31 Jul 2012 14:51:10 -0400

On 31 July 2012 14:40, Michael Goffioul <address@hidden> wrote:
> On Tue, Jul 31, 2012 at 7:04 PM, Jordi Gutiérrez Hermoso

>> 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...

llvm-config outputs the flags that were used to compile LLVM, not the
flags you need in order to compile against LLVM. So, for example, it
outputs -O2 -g on my system amidst its --cflags, which makes it
impossible to make a debug build. I'm not the first one to complain
about this:

    http://llvm.org/bugs/show_bug.cgi?id=4276
    http://llvm.org/bugs/show_bug.cgi?id=9405
    http://llvm.org/bugs/show_bug.cgi?id=8220

That's what.

Since we now care about LLVM, I'd like to fix its build system. Making
llvm.pc seems easier than trying to fix llvm-config.

- Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]