elliott | 25 Sep 09:04

A question about adding gcc flags in groveling.

Hi,

I need to add an additional flag to a file being groveled for iolib 
(net.sockets/grovel.c uses struct ucred, which needs "-D_GNU_SOURCE" in 
my case).  I was wondering if there is a standard way to add flags, like 
binding cffi-grovel::*cc-flags* to a different value?

Elliott
Attila Lendvai | 25 Sep 10:48
Gravatar

Re: A question about adding gcc flags in groveling.

> case).  I was wondering if there is a standard way to add flags, like
> binding cffi-grovel::*cc-flags* to a different value?

you can add :cc-flags to the asdf grovel-file entries...

for details see this patch:

http://common-lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=cffi-cffi;a=commit;h=20080517190231-6b9e8-24015c5ae9ef101f8e04f3c53883647d28cc135c.gz

--

-- 
 attila
elliott | 25 Sep 17:45

Re: A question about adding gcc flags in groveling.

Attila Lendvai wrote:
>> case).  I was wondering if there is a standard way to add flags, like
>> binding cffi-grovel::*cc-flags* to a different value?
>>     
>
> you can add :cc-flags to the asdf grovel-file entries...
>
> for details see this patch:
>
> http://common-lisp.net/cgi-bin/darcsweb/darcsweb.cgi?r=cffi-cffi;a=commit;h=20080517190231-6b9e8-24015c5ae9ef101f8e04f3c53883647d28cc135c.gz
>
>   
So in this case I'd either need to modify the *cc-flags* value of the 
cffi library... or modify the .asd file of net.sockets library.  At 
first I was thinking that pulling additional cc-flags out of an 
environmental variable would resolve the need to patch a library, but 
osicat (which provides GETENV) depends on cffi and not the other way around.

I'll post to iolib-devel next as Stelian suggested.   Thanks Attila.

elliott
Stelian Ionescu | 25 Sep 17:27

Re: A question about adding gcc flags in groveling.

On Thu, 2008-09-25 at 00:07 -0700, elliott wrote:
> Hi,
> 
> I need to add an additional flag to a file being groveled for iolib 
> (net.sockets/grovel.c uses struct ucred, which needs "-D_GNU_SOURCE" in 
> my case).  I was wondering if there is a standard way to add flags, like 
> binding cffi-grovel::*cc-flags* to a different value?

Could you please post the error you got on iolib-devel ? Perhaps it can
be solved in a simpler manner

--

-- 
Stelian Ionescu a.k.a. fe[nl]ix
Quidquid latine dictum sit, altum videtur.

_______________________________________________
cffi-devel mailing list
cffi-devel <at> common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Gmane