That's exactly what I needed, thanks a lot :-)

Worked like a charm !
Jc

On Fri, Apr 23, 2010 at 2:09 PM, Nathan Froyd <froy...@codesourcery.com> wrote:
> On Fri, Apr 23, 2010 at 01:55:48PM -0400, Jean Christophe Beyler wrote:
>> I know we can pass -Wl,option, -Wa,option from gcc down to as and ld
>> however if I have to write :
>>
>> gcc -mArch2 -Wl,--arch2 -Wa,--arch2 hello.c
>>
>> it gets a bit redundant, I must be blind because I can't seem to find
>> how to do it internally.
>
> You want to get comfortable with specs:
>
> http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Spec-Files.html#Spec-Files
>
> and building in what specs should be handled by default:
>
> http://gcc.gnu.org/onlinedocs/gccint/Driver.html#Driver
>
> The ones you're interested in are ASM_SPEC and LINK_SPEC.
>
> -Nathan
>

Reply via email to