[PATCH] Revise Windows PECOFF weak symbols
Nick Clifton
nickc@redhat.com
Mon Oct 25 08:05:00 GMT 2004
Hi Daniel, Hi Aaron,
>>>+ #
>>>+ # exe_ext
>>>+ # Returns target executable extension, if any.
>>>+ #
>>>+ proc exe_ext {} {
>>>+ if { [istarget *-*-mingw32] || [istarget *-*-cygwin*] } {
>>>+ return ".exe"
>>>+ } else {
>>>+ return ""
>>>+ }
>>>+ }
>>
>>This is the best way I could think of for doing this, which should work
>>for Linux also.
Except that Linux hosted cross-compilers, eg for i686-pc-cygwin, have
executables without the .exe extension, but the above code checks the
cross-compiler's target and not the cross-compiler's host.
> istarget corresponds to --target, which does not affect EXE_EXT.
> There's an ishost; would that work?
Ah - yes that ought to do the trick.
Cheers
Nick
More information about the Binutils
mailing list