delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/29/07:43:31

X-Spam-Check-By: sourceware.org
Message-ID: <44A3BCD3.E3010430@dessent.net>
Date: Thu, 29 Jun 2006 04:43:15 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: gmp and libiconv as mingw variant libraries under cygwin?
References: <5460e3330606282304y1875d36avdd987073926090f7 AT mail DOT gmail DOT com> <5460e3330606290027x1e972086vcc251b313d2b13f4 AT mail DOT gmail DOT com> <5460e3330606290408x6e1c8ae1m2f96693290185257 AT mail DOT gmail DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019