On Tue, 2009-07-07 at 19:41 +0800, Xiaofan Chen wrote:
> On Tue, Jul 7, 2009 at 7:36 PM, Xiaofan Chen<xiaof...@gmail.com> wrote:
> > On Tue, Jul 7, 2009 at 7:34 PM, Zach Welch<z...@superlucidity.net> wrote:
> >> On Tue, 2009-07-07 at 19:06 +0800, Xiaofan Chen wrote:
> >>> On Tue, Jul 7, 2009 at 7:01 PM, Xiaofan Chen<xiaof...@gmail.com>
> >> [snip]
> >>> ../trunk/configure --host=i586-mingw32msvc --enable-maintainer-mode
> >>> --disable-shared --enable-ft2232_libftdi
> >>
> >> What happens if you add '--build=i686-pc-linux-gnu' to this?
> >>
> >
> > I will try it. But the start of the configure output says this.
> >
> > mc...@ubuntu904:~/Desktop/build/openocd/build-win32-ftd2xx$ sh
> > myconfig-win32-ftd2xx.sh
> > configure: WARNING: If you wanted to set the --build type, don't use --host.
> >   If a cross compiler is detected then cross compile mode will be used.
> >
> 
> But indeed it works. So the warning should be removed.

The warning is part of autotools.  When used correctly, it does not
issue the warning.  The warning should have led you to look in the
documentation for those options.  From Section 13.1 of autoconf.info:

"""
   If you mean to override the result of `config.guess', use `--build',
not `--host', since the latter enables cross-compilation.  For
historical reasons, whenever you specify `--host', be sure to specify
`--build' too; this will be fixed in the future.  So, to enter
cross-compilation mode, use a command like this

     ./configure --build=i686-pc-linux-gnu --host=m68k-coff
"""

Cheers,

Zach

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to