On 14/08/2011 20:29, Yaakov (Cygwin/X) wrote: > Looking at the code, the .exe handling is added in gcc/gcc.c. There are > two macros: HOST_EXECUTABLE_SUFFIX (which adds .exe to the commands it > calls (cc1/as/collect2/ld), and TARGET_EXECUTABLE_SUFFIX, which is used > only for and in convert_filename() to change the output filename. But > the latter is only used if: > > /* By default there is no special suffix for target executables. */ > /* FIXME: when autoconf is fixed, remove the host check - dj */ > #if defined(TARGET_EXECUTABLE_SUFFIX) && defined(HOST_EXECUTABLE_SUFFIX) > #define HAVE_TARGET_EXECUTABLE_SUFFIX > #endif > > I may be new to the GCC code, but that just looks bogus. On Linux, > HOST_EXECUTABLE_SUFFIX is obviously empty, but why should that control > HAVE_TARGET_EXECUTABLE_SUFFIX? > > I've made a patch to change that, and am rebuilding cygwin-gcc with that > now. If it works (and I don't see why it won't), I'll go ahead and > respin releases with the patch. > > Dave, anything to add here?
Perhaps ping DJ over on the GCC list to ask him if he remembers the context behind that comment; maybe whatever was the autoconf problem is indeed now fixed. cheers, DaveK