diff options
author | obache <obache@pkgsrc.org> | 2012-04-27 10:54:48 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2012-04-27 10:54:48 +0000 |
commit | 3acac4b32ee29cffe2bf8b56746ebefce89b4dfb (patch) | |
tree | adac15c8fcedbbd526af9eaa3c57f7c58fef63c6 | |
parent | 9cf12aa46e24f8e34c1267c9ca911d8e3d08f13a (diff) | |
download | pkgsrc-3acac4b32ee29cffe2bf8b56746ebefce89b4dfb.tar.gz |
expect builtin gcc atomic functions for gcc>=4.1.
-rw-r--r-- | textproc/icu/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/textproc/icu/Makefile b/textproc/icu/Makefile index 119d5019b39..c4017abd670 100644 --- a/textproc/icu/Makefile +++ b/textproc/icu/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.70 2012/04/26 18:12:37 martin Exp $ +# $NetBSD: Makefile,v 1.71 2012/04/27 10:54:48 obache Exp $ DISTNAME= icu4c-49_1_1-src PKGNAME= ${DISTNAME:S/4c//:S/-src//:S/_/./g} @@ -55,4 +55,13 @@ PLIST_SUBST+= MH_NAME=mh-unknown INSTALL_UNSTRIPPED= yes .endif +# expect builtin gcc atomic functions for gcc>=4.1 +# (source/common/putilimp.h) +.if !empty(CC_VERSION:Mgcc-*) && \ + (empty(CC_VERSION:Mgcc-4.0*) && empty(CC_VERSION:Mgcc-[0-3].*)) +. if ${MACHINE_ARCH} == "i386" +CFLAGS+= -march=i486 +. endif +.endif + .include "../../mk/bsd.pkg.mk" |