summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2005-02-28 12:11:29 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2005-02-28 12:11:29 +0000
commit96260ce6405c12f6cbd7b117bb50a643fb728662 (patch)
tree9adbdbd4d74f81299c422a221d4ad640bcfd445d /math
parentc6bcbed294234fce431de9fe3924527b2ab29671 (diff)
downloadpkgsrc-96260ce6405c12f6cbd7b117bb50a643fb728662.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