Date: Thu, 30 Jun 2005 18:16:41 -0400 From: Martin Cracauer <cracauer@cons.org> To: Kris Kennaway <kris@obsecurity.org> Cc: ports@freebsd.org Subject: Re: Problem with mingw port, obeys $(CPUTYPE) but shouldn't Message-ID: <20050630181641.A74954@cons.org> In-Reply-To: <20050630214943.GA45010@xor.obsecurity.org>; from kris@obsecurity.org on Thu, Jun 30, 2005 at 05:49:43PM -0400 References: <20050630174246.A73270@cons.org> <20050630214943.GA45010@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <cracauer@cons.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050630181641.A74954>