pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/icu expect builtin gcc atomic functions for g...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bb47263051e3
branches:  trunk
changeset: 603044:bb47263051e3
user:      obache <obache%pkgsrc.org@localhost>
date:      Fri Apr 27 10:54:48 2012 +0000

description:
expect builtin gcc atomic functions for gcc>=4.1.

diffstat:

 textproc/icu/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r b339b576d6ee -r bb47263051e3 textproc/icu/Makefile
--- a/textproc/icu/Makefile     Fri Apr 27 10:31:32 2012 +0000
+++ b/textproc/icu/Makefile     Fri Apr 27 10:54:48 2012 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index