From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 8 06:27:13 2005 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC29416A4CE for ; Tue, 8 Mar 2005 06:27:13 +0000 (GMT) Received: from gizmo05bw.bigpond.com (gizmo05bw.bigpond.com [144.140.70.40]) by mx1.FreeBSD.org (Postfix) with SMTP id D6E2943D39 for ; Tue, 8 Mar 2005 06:27:12 +0000 (GMT) (envelope-from diskiller@diskiller.net) Received: (qmail 1722 invoked from network); 8 Mar 2005 06:27:11 -0000 Received: from unknown (HELO bwmam05.bigpond.com) (144.135.24.81) by gizmo05bw.bigpond.com with SMTP; 8 Mar 2005 06:27:11 -0000 Received: from cpe-144-136-222-236.sa.bigpond.net.au ([144.136.222.236]) by bwmam05.bigpond.com(MAM REL_3_4_2a 38/14854585) with SMTP id 14854585; Tue, 08 Mar 2005 16:27:11 +1000 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Tue, 08 Mar 2005 16:57:11 +1030 From: Martin Minkus To: Message-ID: In-Reply-To: <422D1349.2000200@freebsd.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: Re: cross compile libc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 06:27:13 -0000 On 8/3/05 1:21 PM, "Peter Grehan" wrote: >> hi someone could help me cross compile libc from /usr/src ?? >> I mus download the source from CURRENT ?? > > Yes. > >> someone could help me to create a toolchain and cross compilate freebsd >> to powerPC ??? > > Once you've downloaded the source, then apply the diff at: > > http://people.freebsd.org/~grehan/sysv4.h.diff > > and then: > > # make TARGET_ARCH=powerpc buildworld Just a warning. Make sure you edit your /etc/make.conf And change any lines that contain something like this: CFLAGS=-O -pipe -march=pentiumpro -mtune=pentiumpro To this: CFLAGS=-O -pipe Or you'll find your make buildworld will fail when it goes to invoke your powerpc crosscompiler and it doesn't know what those pentiumpro options are ;) Thanks, Martin.