This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .exe suffix from gcc and friends


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]