delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/23/22:27:37

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: Re: gcc produces foo.exe, not foo
23 Sep 1998 22:27:37 -0700 :
Message-ID: <19980923155818.46559.cygnus.gnu-win32@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

On Wed, Sep 23, 1998 at 12:34:34AM +0200, Arne Glenstrup wrote:
[...]
> 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?

Autoconf is one way to handle it.  We have added an EXEEXT variable
that's set by the configure process to .exe under Windows and blank
otherwise.

In the upcoming (?) new release of autoconf, there will be an
AC_EXEEXT macro you can call to accomplish this.  Then you would set
EXEEXT = @EXEEXT@ in your Makefile.in and add $(EXEEXT)'s in the
appropriate places.

In b19 comp tools directories, look for AM_EXEEXT which is a similar
local addition.  The corresponding code would be in aclocal.m4 files.

-- 
Geoffrey Noer
noer AT cygnus DOT com
-
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