This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]