diff options
author | recht <recht@pkgsrc.org> | 2003-12-02 23:11:30 +0000 |
---|---|---|
committer | recht <recht@pkgsrc.org> | 2003-12-02 23:11:30 +0000 |
commit | 173248022ce74ac5de71720b06597df3cf23fd74 (patch) | |
tree | f4a44230203ec5475e454a030035948f86c7e0b2 /textproc/icu | |
parent | da25d8ca48550794e7224b32731f0ead4058f1db (diff) | |
download | pkgsrc-173248022ce74ac5de71720b06597df3cf23fd74.tar.gz |
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 (limited to 'textproc/icu')
-rw-r--r-- | textproc/icu/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/textproc/icu/Makefile b/textproc/icu/Makefile index ab956cc58ca..906ebc5aa33 100644 --- a/textproc/icu/Makefile +++ b/textproc/icu/Makefile @@ -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 @@ PKG_SYSCONFSUBDIR= icu 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" |