From owner-freebsd-ports@FreeBSD.ORG Tue May 20 14:47:25 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CFDA37B401 for ; Tue, 20 May 2003 14:47:25 -0700 (PDT) Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F3D943FBF for ; Tue, 20 May 2003 14:47:24 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 20212 invoked from network); 20 May 2003 21:47:19 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 20 May 2003 21:47:19 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h4KLlEp0055592; Tue, 20 May 2003 17:47:14 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030518222126.GA24787@rot13.obsecurity.org> Date: Tue, 20 May 2003 17:47:26 -0400 (EDT) From: John Baldwin To: Kris Kennaway cc: ports@freebsd.org cc: Joerg Wunsch Subject: Re: [kris@FreeBSD.org: cvs commit: ports/devel/avr-libc Makefile] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 May 2003 21:47:25 -0000 On 18-May-2003 Kris Kennaway wrote: > On Sun, May 18, 2003 at 09:35:41PM +0200, Joerg Wunsch wrote: >> As Joerg Wunsch wrote: >> >> > > > FYI. Please see http://bento.freebsd.org/errorlogs/i386-5-full/ for >> > > > the failure log. >> > > >> > > There is no failure log for avr-libc. So what? >> > >> > I see that the last update timestamp on the above URL is May 06, so >> > perhaps you've got a more recent log somewhere? >> >> OK, i found the log on bento. >> >> It still tries to apply that @$%!&ing CPU CFLAG crap to my cross >> compilation. I'm sick of that pessimization now! >> >> I've already got >> >> MAKE_ENV= NO_CPU_CFLAGS=true >> >> in avr-libc/Makefile (long since), that is what i have been told would >> do the trick to get around that braindeadness. > > It looks like jhb added the default -mcpu=pentiumpro to CFLAGS in > r1.13 of bsd.cpu.mk, and it doesn't check for NO_CPU_CFLAGS as it > should. John, can you please investigate this? It is breaking a > number of cross-compilers in the ports collection. It only modifies _CPUCFLAGS: _CPUCFLAGS = -mcpu=pentiumpro Which as you can see at the bottom of bsd.cpu.mk: .if !defined(NO_CPU_CFLAGS) CFLAGS += ${_CPUCFLAGS} .endif Thus it is quite responsive to NO_CPU_CFLAGS: > make -V CFLAGS CPUTYPE="" -O -pipe -mcpu=pentiumpro > make -V CFLAGS CPUTYPE="" NO_CPU_CFLAGS=1 -O -pipe -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/