From 0f710f817138ce841a0e14fe38a26be173f47899 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 31 Mar 2006 18:57:28 +0000 Subject: Move ICE workaround to a hacks.mk file. --- math/gsl/Makefile | 8 +------- math/gsl/hacks.mk | 13 +++++++++++++ 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 math/gsl/hacks.mk (limited to 'math/gsl') 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 -- cgit v1.2.3