summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2002-04-10 12:30:23 +0000
committerdmcmahill <dmcmahill>2002-04-10 12:30:23 +0000
commitf8a8f7f76e2af3aafd4e1da61015753d960d67cc (patch)
treefd75ddbe9da8af25d9fca7d67ac822c478024ac1 /x11
parentc449c49e0ba861e4058874c8d4f6851a620ee8c7 (diff)
downloadpkgsrc-f8a8f7f76e2af3aafd4e1da61015753d960d67cc.tar.gz
turn off optimization on alpha to workaround a c++ compiler bug.
Diffstat (limited to 'x11')
-rw-r--r--x11/kdelibs2/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/x11/kdelibs2/Makefile b/x11/kdelibs2/Makefile
index 21a232e987b..a3e01aea492 100644
--- a/x11/kdelibs2/Makefile
+++ b/x11/kdelibs2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2002/03/28 08:57:39 skrll Exp $
+# $NetBSD: Makefile,v 1.36 2002/04/10 12:30:23 dmcmahill Exp $
DISTNAME= kdelibs-2.2.2
PKGREVISION= 1
@@ -116,15 +116,18 @@ post-install:
.include "../../mk/x11.buildlink.mk"
.include "../../mk/bsd.pkg.mk"
-# XXX On NetBSD, the egcs for:
+# XXX On NetBSD, the egcs and gcc-2.95.3 for:
# XXX
# XXX alpha
# XXX
# XXX has an optimization bug when compiling with -O2 that is tickled by
# XXX ${WRKSRC}/kdeprint/management/kmiconview.cpp.
-#
+# XXX ${WRKSRC}/kdecore/kwinmodule.cpp
.if ${OPSYS} == "NetBSD"
. if (${MACHINE_ARCH} == "alpha")
-CFLAGS+= -O
+CXXFLAGS:= ${CXXFLAGS:C/-O[0-9]*//g}
+CFLAGS:= ${CFLAGS:C/-O[0-9]*//g}
+CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
+CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
. endif
.endif