Subject: Re: gcc produces foo.exe, not foo
From: [email-masked] (Mumit Khan)

1 Oct 1998 08:01:35 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To: Fergus Henderson <[email-masked]>
Cc: [email-masked], gw32 <[email-masked]>

On Wed, 30 Sep 1998, Fergus Henderson wrote:

> On 28-Sep-1998, Earnie Boyd <[email-masked]> wrote:
> > 
> > Is their a reverse of the linker option --force-exe-suffix?
> > 
> > I've tried --noforce-exe-suffix and that doesn't work.
> 
> Did you try `--no-force-exe-suffix'?
>                  ^

Hmmm ... it's the language driver, *not* ld, that forces the .exe suffix on 
cygwin32. The verbose option to the language driver is a good way to check these 
things. Or, by running ld directly you can see what happens.

If your version of "ld" is forcing .exe suffix, you're perhaps somehow specifying 
the --force-exe-suffix option somewhere. 

For the language driver, the executable suffix is controlled by EXECUTABLE_SUFFIX 
macro in the target config file(s). See gcc.c (convert_filename) for more info on 
how the output name is munged. I'll be in favor of removing this forced suffix 
addition for cygwin32, or at least provide an option to disable it in the driver 
(but not for mingw32).

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".