[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: AC_CYGWIN etc. (Was: AC_OBJEXT again)
From: |
Earnie Boyd |
Subject: |
RE: AC_CYGWIN etc. (Was: AC_OBJEXT again) |
Date: |
Thu, 14 Dec 2000 07:22:14 -0800 (PST) |
--- Bernard Dautrevaux <address@hidden> wrote:
> > -----Original Message-----
> > From: Alexandre Oliva [mailto:address@hidden
> > Sent: Thursday, December 14, 2000 4:40 AM
> > To: Mo DeJong
> > Cc: address@hidden; address@hidden
> > Subject: Re: AC_CYGWIN etc. (Was: AC_OBJEXT again)
> >
> >
> > On Dec 14, 2000, Mo DeJong <address@hidden> wrote:
> >
> > > I am at a loss to explain that one. I would think that a
> > > Linux cross mingw compiler would need to output a .exe
> > > file, but it does not.
> >
> > Well, then I think it's a bug in the cross compiler.
>
> No so much ;-(
>
> Don't forget we look at the output of
> $(CC) -o conftest conftest.c
>
> It's arguably a well defined and documented feature of almost all compilers
> that the generated output file will be named "conftest".
>
> In fact we are just tricked by some cygwin/mingw compilers that try to be
> smart enough to allow people NOT using autotools to not bother with the
> '.exe' HOST requirement.
>
> It coudl well be argued that this is a bug in the cygwin/mingw compilers
> (I'm not even sure that its documented that '-o conftest' will generate '-o
> conftest.exe'. Note that this open a new category of questions:
>
I tried to make this argument four or five years ago. The auto-extension was
introduced in B18. It is actually ld that creates the file name with the
extention and gcc is passing along a switch to cause the .exe extention to
happen. Even in the native version I can use ld directly and get foo not
foo.exe for -o foo.
If you `gcc -o run. tst.c' no extention is created as gcc thinks there already
is one. Mo, you should check to make sure that you didn't do this.
Cheers,
=====
Earnie Boyd
mailto:address@hidden
--- <http://earniesystems.safeshopper.com> ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
--- Minimalist GNU for Windows <http://www.mingw.org/> ---
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/