From 60e40bfbe3b5a28f32bb76ae78c51a6cf84b141b Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Mon, 28 Feb 2005 12:11:29 +0000 Subject: on SunOS/sparc with gcc, turn off the -mcpu flag to avoid an internal compiler error. --- math/gsl/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'math') diff --git a/math/gsl/Makefile b/math/gsl/Makefile index 0dad969aea9..7f60ce53f7e 100644 --- a/math/gsl/Makefile +++ b/math/gsl/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2005/01/13 15:06:25 adam Exp $ +# $NetBSD: Makefile,v 1.21 2005/02/28 12:11:29 dmcmahill Exp $ DISTNAME= gsl-1.6 CATEGORIES= math devel @@ -15,3 +15,9 @@ INFO_FILES= gsl-ref.info TEST_TARGET= check .include "../../mk/bsd.pkg.mk" + +# At least gcc-3.3.5 failed to compile gsl-1.6/statistics/lag1.c +# with -mcpu=v9 on a solaris/sparc system. +.if (${OPSYS} == "SunOS") && (${MACHINE_ARCH} == "sparc") && (!empty(CC_VERSION:M*gcc*)) +CFLAGS:= ${CFLAGS:C/-mcpu=[^ \t]*//g} +.endif -- cgit v1.2.3