This is the mail archive of the
mailing list for the Cygwin project.
Re: gmp and libiconv as mingw variant libraries under cygwin?
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
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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html