delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/23/17:05:21

From: bje AT cygnus DOT com (Ben Elliston)
Subject: Re: gcc produces foo.exe, not foo
23 Sep 1998 17:05:21 -0700 :
Message-ID: <Pine.LNX.3.95.980924001449.27570F-100000.cygnus.gnu-win32@moshpit.cygnus.com>
References: <Pine DOT HPP DOT 3 DOT 95 DOT 980923002730 DOT 28557A-100000 AT grimer DOT diku DOT dk>
Mime-Version: 1.0
To: Arne Glenstrup <panic AT diku DOT dk>
Cc: gnu-win32 AT cygnus DOT com

> What is the standard way of circumventing this problem? Simply writing
>           mv foo.exe bar.exe
> is not a full solution, because that is not portable. Is it necessary to
> write some autoconf stuff to check what the extension of the executable
> resulting from calling gcc is?

Yes, that's right.  The next version of autoconf will have a new macro
called `AC_EXEEXT' which will probe your system and make a subsitution
variable available for your Makefile.in called @EXEEXT@.  It typically has
the value "" or ".exe".

Ben

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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