gmp and libiconv as mingw variant libraries under cygwin?

Brian Dessent brian@dessent.net
Thu Jun 29 11:57:00 GMT 2006


Christian Joensson wrote:

> CC='gcc -mno-cygwin' CXX='g++ -mno-cygwin' ../src/configure \
>         --build=i686-pc-cygwin --target=i686-pc-mingw32 --prefix=/opt/mingw

You should specify all three here.  Sorry if I wasn't clear about that
before.  --build=i686-pc-cygwin --host=i686-pc-mingw32
--target=i686-pc-mingw32.  Without --host it assumes that host=build,
and tries to make a Cygwin binary, which fails since you're using mingw
gcc.  This is only necessary for toolchains, for regular libraries (e.g.
gmp and libiconv) you should only need --host and --build when
cross-compiling.

I didn't mean to discourage you from cross compiling binutils the way
you currently are, only to point out that doing "configure
i686-pc-mingw32" is discouraged by autoconf people and that the
preferred way is to spell out host, target, build explicitly.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list