From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20583 invoked by alias); 16 Nov 2011 23:18:49 -0000 Received: (qmail 20571 invoked by uid 22791); 16 Nov 2011 23:18:48 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp12.smtpout.orange.fr (HELO smtp.smtpout.orange.fr) (80.12.242.134) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Nov 2011 23:18:29 +0000 Received: from treguer.localnet ([90.32.27.63]) by mwinf5d23 with ME id xzJT1h00D1Mhb6203zJTKp; Thu, 17 Nov 2011 00:18:28 +0100 From: "Yann E. MORIN" To: crossgcc@sourceware.org Subject: Re: [PATCH 1 of 2] docs: --target versus --host Date: Wed, 16 Nov 2011 23:18:00 -0000 User-Agent: KMail/1.13.5 (Linux/3.1.0-treguer; KDE/4.4.5; x86_64; ; ) Cc: Trevor Woerner References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111170018.27492.yann.morin.1998@anciens.enib.fr> Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00075.txt.bz2 Trevor, All, On Wednesday 16 November 2011 23:45:26 Trevor Woerner wrote: > # HG changeset patch > # User Trevor Woerner > # Date 1321477602 18000 > # Node ID c1c4d9174fbfd7d76e0e520dc6657cf239a7d718 > # Parent c4452a1a18fb5c57b991eb75f7ff480d33e91704 > docs: --target versus --host > > In the very beginnings, eons ago, autotools also got confused by this > whole build vs. host vs. target, and got it wrong. Now they fixed it, > but they want to keep backward compatibility, so the --target is still > recongised, although ./configure will complain if you do so. It is ^^ "recognised" (this orignally is my typo), I'll fix. > better to use --host. > > Signed-off-by: "Trevor Woerner" > > diff -r c4452a1a18fb -r c1c4d9174fbf docs/5 - Using the toolchain.txt > --- a/docs/5 - Using the toolchain.txt Tue Nov 15 19:11:57 2011 +0100 > +++ b/docs/5 - Using the toolchain.txt Wed Nov 16 16:06:42 2011 -0500 > @@ -11,13 +11,14 @@ > your PATH, such as: > export PATH="${PATH}:/your/toolchain/path/bin" > > -and then using the target tuple to tell the build systems to use your > -toolchain: > - ./configure --target=your-target-tuple > +and then using the '--host' tuple to tell the build systems to use your > +toolchain (if the software package uses the autotools system you should > +also pass --build, for completeness): > + ./configure --host=your-host-tuple --build=your-build-tuple Usually, I use --build before --host, it seems more logical to me. But the order has no impact whatsoever on the result. > or > - make CC=your-target-tuple-gcc > + make CC=your-host-tuple-gcc > or > - make CROSS_COMPILE=your-target-tuple- > + make CROSS_COMPILE=your-host-tuple- > and so on... Aren't all these build/host/target things sneaky and confusing? ;-) To make things clear, I'd like to add this snippet: (Note: in the above examples, 'host' refers to the host of your program, not the host of the toolchain; and 'build' refers to the machine where you build your program, that is the host of the toolchain.) What do you think? Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' -- For unsubscribe information see http://sourceware.org/lists.html#faq