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