ld_compile: force CFLAGS really necessary ?
Nick Clifton
nickc@redhat.com
Wed Aug 29 15:26:00 GMT 2007
Hi Mike,
>> * Not all C++ source files use the .cc file extension. Earlier on in
>> proc default_ld_compile there is code to determine if the compiler is gcc
>> or g++, maybe you could tap into that ?
>
> i think you mean latter on in default_ld_compile ?
Yes.
> are you referring to this code snippet ?
> set ccexe [string replace $ccexe 0 [string last "/" $ccexe] ""]
> if {[string match "*gcc*" $ccexe] || [string match "*++*" $ccexe]} then {
> set flags "$gcc_gas_flag $flags"
> }
Yes. I thought that you could split it up into separate "*gcc*" and "*++*"
tests and add in the append of CFLAGS or CXXFLAGS to flags as appropriate.
Cheers
Nick
More information about the Binutils
mailing list