[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] csc / compile - how to pass things to gcc?
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] csc / compile - how to pass things to gcc? |
Date: |
Mon, 29 Oct 2007 10:57:42 +0100 |
On 10/29/07, Terrence Brannon <address@hidden> wrote:
> I want all calls to gcc from Chicken csc to pass
>
> -D__uint32_t_defined -D__int8_t_defined
>
> but I do not know how to modify this compile call so that happens.
> please advise:
>
> (compile -O -d2 -X easyffi -s -o random-mtzig.so
> ,@(if has-exports? '(-check-imports -emit-exports
> random-mtzig.exports) '())
> random-mtzig.scm randmtzig.c -lchicken -ldl -lm)
>
csc accepts "-C ..." to pass arbitrary options to the C compiler. You
can also tell chicken-setup to add additional csc options (like "-C")
with "-csc-option" (mind the quoting, it's easy to trip up there).
cheers,
felix