summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2002-11-16 18:45:32 +0000
committerdmcmahill <dmcmahill>2002-11-16 18:45:32 +0000
commite172b0371560e897a41067316bddbe855654b0cb (patch)
tree2183732925c57f1db9da3d693b740b0efeeb6408 /x11
parent24721d5472f25d5263e8b3b94f704ae70ddaafd3 (diff)
downloadpkgsrc-e172b0371560e897a41067316bddbe855654b0cb.tar.gz
turn down the optimizaiton level on sparc as well as alpha to let this
get past -O2 bugs.
Diffstat (limited to 'x11')
-rw-r--r--x11/kdelibs3/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/x11/kdelibs3/Makefile b/x11/kdelibs3/Makefile
index 87b08407093..c402c58ec9e 100644
--- a/x11/kdelibs3/Makefile
+++ b/x11/kdelibs3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2002/10/14 09:13:55 skrll Exp $
+# $NetBSD: Makefile,v 1.14 2002/11/16 18:45:32 dmcmahill Exp $
DISTNAME= kdelibs-3.0.4
CATEGORIES= x11
@@ -99,15 +99,20 @@ post-install:
.include "../../mk/bsd.pkg.mk"
-# XXX On NetBSD, the gcc for:
+# XXX On NetBSD, the egcs and gcc-2.95.3 for:
# XXX
-# XXX alpha
+# XXX alpha and sparc
# XXX
# XXX has an optimization bug when compiling with -O2 that is tickled by
+# XXX ${WRKSRC}/kio/kio/global.cpp
# XXX ${WRKSRC}/kdeprint/management/kmiconview.cpp.
+# XXX and others
#
.if ${OPSYS} == "NetBSD"
-. if (${MACHINE_ARCH} == "alpha")
-CFLAGS+= -O
+. if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc")
+CXXFLAGS:= ${CXXFLAGS:C/-O[0-9]*/-O/g}
+CFLAGS:= ${CFLAGS:C/-O[0-9]*/-O/g}
+CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
+CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
. endif
.endif