bug-guile
[Top][All Lists]
Advanced

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

Re: GUILE_CFLAGS contains warning options


From: Ludovic Courtès
Subject: Re: GUILE_CFLAGS contains warning options
Date: Tue, 22 Feb 2011 21:46:36 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Hi Bruno,

Bruno Haible <address@hidden> writes:

> Andy Wingo wrote:
>> > $LIBDIR/pkgconfig/guile-2.0.pc contains a line such as
>> >
>> >   Cflags: -I${pkgincludedir}/2.0 -Wall -I$LIBUNISTRING_PREFIX/include 
>> > -pthread -I$GC_PREFIX/include  
>> 
>> The template is:
>> 
>>   Cflags: -I${pkgincludedir}/@GUILE_EFFECTIVE_VERSION@ @GUILE_CFLAGS@ 
>> @BDW_GC_CFLAGS@
>> ...
>> And in configure.ac I have:
>> 
>>   GUILE_CFLAGS="$CPPFLAGS $PTHREAD_CFLAGS"

[...]

> You can extract the -I options from $CPPFLAGS; this would be OK since all
> compilers support -I.

That’s probably the right thing to do.

However, why do you have -Wall in CPPFLAGS, instead of CFLAGS, in the
first place?  :-)

> For the PTHREAD_CFLAGS it is more tricky: On most platforms you can use
> "-lpthread" instead of "-pthread", and all compilers support -l options.
> But on OSF/1, the options for using threads are compiler dependent:
>   * -pthread for cc,
>   * -lpthread for gcc.

This and more, as Ken mentioned, so I’d leave it as is for now.

Thanks,
Ludo’.



reply via email to

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