summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
Diffstat (limited to 'math')
-rw-r--r--math/gsl/Makefile8
1 files changed, 7 insertions, 1 deletions
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