ld_compile: force CFLAGS really necessary ?
Mike Frysinger
vapier@gentoo.org
Sat Sep 1 16:32:00 GMT 2007
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 <vapier@gentoo.org>
* 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20070901/f4ea7628/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-ld-tests-CXX.patch
Type: text/x-diff
Size: 2827 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20070901/f4ea7628/attachment.bin>
More information about the Binutils
mailing list