From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 8 06:36:18 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 86C3A16A4CE for ; Tue, 8 Mar 2005 06:36:18 +0000 (GMT) Received: from gizmo11bw.bigpond.com (gizmo11bw.bigpond.com [144.140.70.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 07BCD43D62 for ; Tue, 8 Mar 2005 06:36:17 +0000 (GMT) (envelope-from diskiller@diskiller.net) Received: (qmail 18183 invoked from network); 8 Mar 2005 06:36:14 -0000 Received: from unknown (HELO bwmam05.bigpond.com) (144.135.24.81) by gizmo11bw.bigpond.com with SMTP; 8 Mar 2005 06:36:14 -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/14860038) with SMTP id 14860038; Tue, 08 Mar 2005 16:36:14 +1000 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Tue, 08 Mar 2005 17:06:14 +1030 From: Martin Minkus To: Peter Grehan Message-ID: In-Reply-To: <422D4868.5040303@freebsd.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit cc: powerpc@freebsd.org 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:36:18 -0000 On 8/3/05 5:08 PM, "Peter Grehan" wrote: >> 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 > > You might be able to conditionalize your make.conf with something like: > > .if ${TARGET_ARCH} == "i386" > CFLAGS=-O -pipe -march=pentiumpro -mtune=pentiumpro > .endif Not a bad idea! I'll do that. Thanks, Martin.