From owner-freebsd-hackers@FreeBSD.ORG Thu May 21 11:55:05 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54159106566B for ; Thu, 21 May 2009 11:55:05 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id AAB528FC17 for ; Thu, 21 May 2009 11:55:04 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by ey-out-2122.google.com with SMTP id 9so250275eyd.7 for ; Thu, 21 May 2009 04:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=G5wcWZIQI/9kz7pHWKrcI7mjqQvstuLXmbQwsJzUqoo=; b=Hw9z6Cqw2hLfndY5xIFNJf+zIGQn1hI9QxzOJSOZbGlHOxAHmaRLmYgKeKNC2sooP3 nW8++ZPGHgaxHhfR50aiHe67LPjlNwR98wQZ+jRt9YKSj5LzExbeWWf+/DF6aVOpSxE4 0iFFmxk/vYwcftyU5jZ9UQZujbOHcyh1Qut80= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=ZM8G8zfDJGWf2S5Nr01wcILFy8l4lo9Xw2oVpJemrsym2W5+ASZcLQLZhZnc7I9HQC rOrE83GGqkizd+nmdzqNV3TcsglZ0IcatxRJbZ8WeqZ9unTlLVGCPL9CRp/1enkmVjQz 4vCbPJNPBlf2xVfOodGgyMYRBUz3n97L2EMUQ= Received: by 10.210.137.17 with SMTP id k17mr925969ebd.99.1242906902653; Thu, 21 May 2009 04:55:02 -0700 (PDT) Received: from logik.internal.network (81-86-41-187.dsl.pipex.com [81.86.41.187]) by mx.google.com with ESMTPS id 9sm1791257ewy.57.2009.05.21.04.54.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 May 2009 04:55:00 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id 5C20D5D59; Thu, 21 May 2009 11:54:58 +0000 (UTC) Date: Thu, 21 May 2009 12:54:58 +0100 From: xorquewasp@googlemail.com To: Robert Watson Message-ID: <20090521115458.GA54961@logik.internal.network> References: <20090521095305.GA27043@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-hackers@freebsd.org Subject: Re: compiling system binutils as cross tools X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2009 11:55:05 -0000 On 2009-05-21 11:20:21, Robert Watson wrote: > Not really my area, but if you haven't found "make toolchain" and "make > buildenv" then you might want to take a look. Typically these will be > combined with TARGET_ARCH=foo, and in your case foo is 'amd64'. The > former builds the toolchain required for the architecture, and the latter > creates a shell environment with paths appropriately munged and > environments appropriately set to cross-compile using that chain. > Normally the toolchain step is part of our integrated > buildworld/buildkernel/etc process, but you can also use it for other > things with buildenv. Thanks, 'make toolchain' looks like it'll work. 'make buildenv' gave me the paths to the binaries I needed to tell the compiler I'm working on to use those for cross compilation. What tangled webs we weave... cheers, xw