diff options
author | jmcneill <jmcneill> | 2013-02-01 03:44:22 +0000 |
---|---|---|
committer | jmcneill <jmcneill> | 2013-02-01 03:44:22 +0000 |
commit | a2927239034b6e4ecc5c56963d44cce09b6336de (patch) | |
tree | 2d2761d8ca801747a0e43bfe44ea03653e6be60f /textproc/icu | |
parent | c05571981d595f78abd9afd4057a5081a03ac533 (diff) | |
download | pkgsrc-a2927239034b6e4ecc5c56963d44cce09b6336de.tar.gz |
Fix NetBSD build with gcc <= 4.5 on arm (missing builtin atomics).
Diffstat (limited to 'textproc/icu')
-rw-r--r-- | textproc/icu/hacks.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/textproc/icu/hacks.mk b/textproc/icu/hacks.mk new file mode 100644 index 00000000000..7dcc6c0ef0f --- /dev/null +++ b/textproc/icu/hacks.mk @@ -0,0 +1,14 @@ +# $NetBSD: hacks.mk,v 1.1 2013/02/01 03:44:22 jmcneill Exp $ + +.if !defined(ICU_HACKS_MK) +ICU_HACKS_MK= # defined + +# NetBSD arm gcc <= 4.5 missing builtin atomics +.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "arm" +. if !empty(CC_VERSION:Mgcc-4.[0-5].*) +PKG_HACKS+= arm-gcc-atomics +CFLAGS+= -DU_HAVE_GCC_ATOMICS=0 +. endif +.endif + +.endif |