On Wednesday 29 August 2007, Nick Clifton wrote: > > 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. updated version attached 2007-09-01 Mike Frysinger * lib/ld-lib.exp (default_ld_compile): Pull in global CXXFLAGS and add it to $flags when $ccexe matches *++*. (run_ld_link_exec_tests): Pull in global CXXFLAGS and execute CXX with CXXFLAGS when $lang matches c++. (run_cc_link_tests): Likewise. -mike