This is the mail archive of the
mailing list for the Cygwin project.
Re: Compiling apps to Mingw32 with cygwin
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: <cygwin at cygwin dot com>
- Cc: <hschwentner at yahoo dot com>
- Date: Fri, 11 Jan 2002 08:43:41 +1100
- Subject: Re: Compiling apps to Mingw32 with cygwin
- References: <DLEBJKNCNLJEDKMKICHGCENCCBAA.email@example.com>
----- Original Message -----
From: "Jon Leichter" <firstname.lastname@example.org>
I hope I don't repeat anything from this thread, I've only been scanning
> obvious to me that unless you're building a project with a configure
> built by an up-to-date version of autoconf, none of what you have
> will work. Note that the approach I suggested will work in either
> THE POSSIBLE EXCEPTION (as you have stated) that one runs into trouble
> if --build and --target are not specified as well.
Autoconf 2.13 supports these options - so the configure script doesn't
need to be *that* up to date.
However, the script needs
(and if the package generates platform specific output (ie it's an
in the configure.in. You may need to add the relevant macros and run
As for --build, it is automatically detected as long as
AC_CANONICAL_BUILD is in the script. You may get a warning
configure: WARNING: If you wanted to set the --build type, don't
If a cross compiler is detected then cross compile mode will be
This warning is safe IFF you have a cross compiler.
> This spawns another associated topic. What are the right values for
> triplets (in CURRENT autoconf)? If you're building MinGW binaries in a
> Cygwin-hosted environment, it seems to me that you should ONLY
> specify --target=i686-pc-mingw32 and let the other two switches
No. Specify --host. The meaning is clearly documented in the autoconf
build - what OS the compilation is running on..
host - what OS the binaries created should run on.
target - what OS the binaries created should target their output to.
> Note that I have tried to only use the --target switch in my projects,
> opposed to the --host switch. However, in OpenLDAP and the other
> projects, NONE of the configure scripts handle these switches
> found that using --host was the best solution for these projects.
--target being the wrong switch, I'm not surprised it didn't do what you
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html