summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2005-02-28 12:11:29 +0000
committerdmcmahill <dmcmahill>2005-02-28 12:11:29 +0000
commitcccb8917014aba2a11c1df599396394b0881e030 (patch)
tree9adbdbd4d74f81299c422a221d4ad640bcfd445d /math
parent626640e2da7e1119455e9f577b9cf344964d07e8 (diff)
downloadpkgsrc-cccb8917014aba2a11c1df599396394b0881e030.tar.gz
on SunOS/sparc with gcc, turn off the -mcpu flag to avoid an internal
compiler error.
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