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
commit60e40bfbe3b5a28f32bb76ae78c51a6cf84b141b (patch)
tree9adbdbd4d74f81299c422a221d4ad640bcfd445d /math
parentf98742cc83e083351b7b733d874dc89e5b79dc4c (diff)
downloadpkgsrc-60e40bfbe3b5a28f32bb76ae78c51a6cf84b141b.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