Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Jason Pyeron CC: cygwin AT cygwin DOT com Subject: Re: .exe suffix from gcc and friends References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/