.EXE and .OBJ depend on target, not host

Chris Faylor cgf@cygnus.com
Sat Jul 29 21:54:00 GMT 2000


On Fri, Jun 30, 2000 at 06:03:18 -0300, Alexandre Oliva wrote:
>Whether to use the .EXE extension for executables and .OBJ for object
>files is a property of the target, not of the host.  With the current
>set-up, if I build a cross compiler with --target=i686-cygwin, the
>cross compiler won't build .exe files as excepted to be able to run
>them on MS-Windows.  Similarly, if I build a cross tool hosted on
>Cygwin, but for some embedded target, it doesn't make sense to append
>.exe to executable names: they aren't executable for cygwin.
>
>Thus, I propose this patch, that moves all definitions of
>EXECUTABLE_SUFFIX and OBJECT_SUFFIX from host configuration files to
>target configuration files.  Ok to install?

I approve the Windows' parts of this patch.  This change in behavior
makes sense to me.

cgf


More information about the Gcc-patches mailing list