summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-03-31 18:57:28 +0000
committerjlam <jlam@pkgsrc.org>2006-03-31 18:57:28 +0000
commit29ed2c5b478b94ed63e6b26767884ed587e767e2 (patch)
tree5c800bd9aee7741fa9a6144890f3cfa76159e099 /math
parentceb12e97ba5161e0820b6250266c7823f85ce461 (diff)
downloadpkgsrc-29ed2c5b478b94ed63e6b26767884ed587e767e2.tar.gz
Move ICE workaround to a hacks.mk file.
Diffstat (limited to 'math')
-rw-r--r--math/gsl/Makefile8
-rw-r--r--math/gsl/hacks.mk13
2 files changed, 14 insertions, 7 deletions
diff --git a/math/gsl/Makefile b/math/gsl/Makefile
index f34ec892280..ee90964c166 100644
--- a/math/gsl/Makefile
+++ b/math/gsl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2005/09/30 12:31:28 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2006/03/31 18:57:28 jlam Exp $
DISTNAME= gsl-1.7
CATEGORIES= math devel
@@ -15,9 +15,3 @@ 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
diff --git a/math/gsl/hacks.mk b/math/gsl/hacks.mk
new file mode 100644
index 00000000000..74492607b68
--- /dev/null
+++ b/math/gsl/hacks.mk
@@ -0,0 +1,13 @@
+# $NetBSD: hacks.mk,v 1.1 2006/03/31 18:57:28 jlam Exp $
+
+.include "../../mk/compiler.mk"
+
+### [Mon Feb 28 12:11:29 2005 UTC : dmcmahill]
+### 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") && !empty(MACHINE_ARCH:Msparc) && \
+ !empty(CC_VERSION:M*gcc*)
+PKG_HACKS+= solaris-sparc-ice
+BUILDLINK_TRANSFORM+= rm:-mcpu=v9
+.endif