Problem with mingw port, obeys $(CPUTYPE) but shouldn't

Martin Cracauer cracauer at cons.org
Thu Jun 30 22:16:43 GMT 2005


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 at 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.
-------------- next part --------------
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++


More information about the freebsd-ports mailing list