diff options
author | recht <recht> | 2003-12-02 23:11:30 +0000 |
---|---|---|
committer | recht <recht> | 2003-12-02 23:11:30 +0000 |
commit | ee15460b623b9197456ff6ccceff160598377faa (patch) | |
tree | f4a44230203ec5475e454a030035948f86c7e0b2 /textproc | |
parent | 49539f927b4163815da65217ccdaa66b2c8c4ee5 (diff) | |
download | pkgsrc-ee15460b623b9197456ff6ccceff160598377faa.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')
-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" |