pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/gsl on SunOS/sparc with gcc, turn off the -mcpu f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e7ce3af5e64f
branches:  trunk
changeset: 489912:e7ce3af5e64f
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Mon Feb 28 12:11:29 2005 +0000

description:
on SunOS/sparc with gcc, turn off the -mcpu flag to avoid an internal
compiler error.

diffstat:

 math/gsl/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r b610976792a3 -r e7ce3af5e64f math/gsl/Makefile
--- a/math/gsl/Makefile Mon Feb 28 09:34:29 2005 +0000
+++ b/math/gsl/Makefile Mon Feb 28 12:11:29 2005 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index