pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/gsl Move ICE workaround to a hacks.mk file.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fe93700c4f2d
branches:  trunk
changeset: 510586:fe93700c4f2d
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Mar 31 18:57:28 2006 +0000

description:
Move ICE workaround to a hacks.mk file.

diffstat:

 math/gsl/Makefile |   8 +-------
 math/gsl/hacks.mk |  13 +++++++++++++
 2 files changed, 14 insertions(+), 7 deletions(-)

diffs (36 lines):

diff -r 936f63fb6713 -r fe93700c4f2d math/gsl/Makefile
--- a/math/gsl/Makefile Fri Mar 31 18:35:22 2006 +0000
+++ b/math/gsl/Makefile Fri Mar 31 18:57:28 2006 +0000
@@ -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 @@
 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 -r 936f63fb6713 -r fe93700c4f2d math/gsl/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/gsl/hacks.mk Fri Mar 31 18:57:28 2006 +0000
@@ -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



Home | Main Index | Thread Index | Old Index