This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch RFC] EXECUTABLE_SUFFIX changes
> I've also noticed outstanding references to OBJECT_SUFFIX in
> config/i386/xm-os2.h and config/winnt/xm-winnt.h, and to EXECUTABLE_SUFFIX
> in config/i386/xm-os2.h, config/rs6000/xm-cygwin.h, config/i386/xm-dos.h and
> config/i386/winnt/xm-winnt.h - are these all gone from v3? Do you think I
> should patch them as well?
You should patch them, but they don't exist in v3 or head any more.
> I also noticed an asymmetry in your post which I think might have been
> accidental: there are hunks patching config/i386/xm-{cygwin,djgpp,mingw32}.h
> but only hunks for config/i386/{cygwin,mingw32}.h of the target headers -
> doesn't djgpp.h want a definition of TARGET_EXECUTABLE_SUFFIX as well?
That's intentional. djgpp adds the .exe in the linker, in such a way
that both "foo" and "foo.exe" exist. That appeases autoconf and
Makefiles, and has a few other obscure advantages. Cygwin solves this
problem with trickery in cygwin1.dll instead, so it can have gcc put
the .exe on.