delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/11/23:38:12

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <434C8512.80907@byu.net>
Date: Tue, 11 Oct 2005 21:37:54 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Jason Pyeron <jpyeron AT pdinc DOT us>
CC: cygwin AT cygwin DOT com
Subject: Re: .exe suffix from gcc and friends
References: <Pine DOT LNX DOT 4 DOT 62 DOT 0510112316590 DOT 8152 AT ns DOT pyerotechnics DOT com>
In-Reply-To: <Pine.LNX.4.62.0510112316590.8152@ns.pyerotechnics.com>
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jason Pyeron on 10/11/2005 9:19 PM:
> 
> Is there a way to disable the .exe suffix when producing output from
> gcc, ld, etc?

You can try the brute force method: 'mv foo.exe bar.' (only works on
non-managed mounts).  But I don't know of any way to make gcc itself not
append the suffix.  But generally, stripping the suffix confuses Win9x,
and the autotools are already designed to help you with an appropriate
definition of $(EXEEXT) in your Makefiles, so it is not recommended.
Besides, cygwin has enough .exe magic that './foo' will run foo.exe if
that exists.

> 
> I think I missed it in the man pages.

I doubt the gcc man pages would have mentioned this, and the mv man pages
certainly don't (in general, man pages tend to be generic to all systems,
whereas .exe is a problem unique to cygwin and other Windows ports).

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin coreutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTIUS84KuGfSFAYARApPRAKCog7HPCeFWB3/4f7JFSb7lhyhi3wCdHC6y
Dhn/sthEnXM9xLDQLNHPP3o=
=Gyoq
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019