pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/icu gcc3 can't compile icu with -Os or -O[2-9]
details: https://anonhg.NetBSD.org/pkgsrc/rev/0cdc39949d45
branches: trunk
changeset: 463915:0cdc39949d45
user: recht <recht%pkgsrc.org@localhost>
date: Tue Dec 02 23:11:30 2003 +0000
description:
gcc3 can't compile icu with -Os or -O[2-9]
see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11969 for details
ok'ed by wiz@
diffstat:
textproc/icu/Makefile | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r d41a4ad52b77 -r 0cdc39949d45 textproc/icu/Makefile
--- a/textproc/icu/Makefile Tue Dec 02 23:08:24 2003 +0000
+++ b/textproc/icu/Makefile Tue Dec 02 23:11:30 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2003/10/18 12:46:37 cjep Exp $
+# $NetBSD: Makefile,v 1.23 2003/12/02 23:11:30 recht Exp $
#
DISTNAME= icu-2.6
@@ -32,4 +32,15 @@
SUPPORT_FILES+= ${PREFIX}/share/examples/icu/convrtrs.txt \
${PKG_SYSCONFDIR}/convrtrs.txt
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(CC_VERSION:Mgcc-3*)
+CXXFLAGS:= ${CXXFLAGS:C/-O[0-9]*/-O/g}
+CFLAGS:= ${CFLAGS:C/-O[0-9]*/-O/g}
+CXXFLAGS:= ${CXXFLAGS:C/-Os/-O/g}
+CFLAGS:= ${CFLAGS:C/-Os/-O/g}
+CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
+CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
+.endif
+
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index