From owner-freebsd-ports@FreeBSD.ORG Thu Jun 30 22:16:43 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 A8F0316A41C for ; Thu, 30 Jun 2005 22:16:43 +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 404A343D49 for ; Thu, 30 Jun 2005 22:16:43 +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 j5UMGgCq075019; Fri, 1 Jul 2005 00:16:42 +0200 (CEST) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.13.1/8.12.9/Submit) id j5UMGgYR075018; Thu, 30 Jun 2005 18:16:42 -0400 (EDT) (envelope-from cracauer) Date: Thu, 30 Jun 2005 18:16:41 -0400 From: Martin Cracauer To: Kris Kennaway Message-ID: <20050630181641.A74954@cons.org> References: <20050630174246.A73270@cons.org> <20050630214943.GA45010@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20050630214943.GA45010@xor.obsecurity.org>; from kris@obsecurity.org on Thu, Jun 30, 2005 at 05:49:43PM -0400 Cc: ports@freebsd.org 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: Thu, 30 Jun 2005 22:16:43 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Kris Kennaway wrote on Thu, Jun 30, 2005 at 05:49:43PM -0400: > On Thu, Jun 30, 2005 at 05:42:46PM -0400, Martin Cracauer wrote: > > The mingw port seems to inherit CPU-specific settings from > > /etc/make.conf which it shouldn't. It uses an older version of gcc > > which is bound not to understand the fancy tuning from the CPU type. > > 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? 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. --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=diff Index: Makefile =================================================================== RCS file: /home/CVS-FreeBSD/ports/devel/mingw-gcc/Makefile,v retrieving revision 1.21 diff -u -r1.21 Makefile --- Makefile 19 Jan 2005 16:35:48 -0000 1.21 +++ Makefile 30 Jun 2005 22:06:12 -0000 @@ -28,6 +28,7 @@ WANT_AUTOCONF_VER=253 USE_GMAKE= yes USE_REINPLACE= yes +WITHOUT_CPU_CFLAGS= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --target=i386-mingw32msvc \ --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/i386-mingw32msvc/${PORTVERSION}/include/g++ --G4iJoqBmSsgzjUCe--