From owner-freebsd-ports@FreeBSD.ORG Fri Jul 1 18:35:47 2005 Return-Path: X-Original-To: ports@freebsd.org 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 6490A16A41C for ; Fri, 1 Jul 2005 18:35:47 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEB5243D49 for ; Fri, 1 Jul 2005 18:35:46 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper [212.12.50.230]) by schlepper.zs64.net (8.13.1/8.12.9) with ESMTP id j61IXxDo098060; Fri, 1 Jul 2005 20:33:59 +0200 (CEST) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.13.1/8.12.9/Submit) id j61IXxOJ098059; Fri, 1 Jul 2005 14:33:59 -0400 (EDT) (envelope-from cracauer) Date: Fri, 1 Jul 2005 14:33:59 -0400 From: Martin Cracauer To: Kris Kennaway Message-ID: <20050701143359.A97822@cons.org> References: <20050630174246.A73270@cons.org> <20050630214943.GA45010@xor.obsecurity.org> <20050630181641.A74954@cons.org> <20050630233745.GA78956@xor.obsecurity.org> <20050701052243.GA9198@sinanica.bg.datamax> <20050701181956.GA99579@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20050701181956.GA99579@xor.obsecurity.org>; from kris@obsecurity.org on Fri, Jul 01, 2005 at 02:19:56PM -0400 Cc: ports@freebsd.org, Vasil Dimov , Martin Cracauer Subject: Re: Problem with mingw port, obeys $(CPUTYPE) but shouldn't X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2005 18:35:47 -0000 > > > > > There's a bsd.port.mk option (WITHOUT_CPU_CFLAGS or something) that > > > > > sanitizes the CFLAGS to prevent old compiler ports from breaking in > > > > > this way. > > > > > > > > Thank you Kris, that is doing the right thing. The appended diff > > > > fixes the port. > > > > > > > > Anybody thinks of a reason not to commit that? > > > > > > Seems good to me :-) It would be nice if someone could sweep the other > > > miscellaneous compiler ports for this too. > > > > > Any ideas how this could be achieved? > > Remove standard compiler and find ports that do not define NO_BUILD and > > do not fail building... :) > > I don't know if you can do this automatically (those ports still need > to bootstrap themselves). Maybe I should try doing a package build > run with CPUTYPE=pentium3 since that was unsupported on old gcc > versions. That should fail just fine and give you a nice list of ports. What I wonder is why the other mingw ports did not fail. I assume they were crosscompiled from the system gcc, not mingw-gcc. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ No warranty. This email is probably produced by one of my cats stepping on the keys. No, I don't have an infinite number of cats.