diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2013-02-01 03:44:22 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2013-02-01 03:44:22 +0000 |
commit | b18d76cfd3a4171b60798b1bcbd939d14989a283 (patch) | |
tree | 2d2761d8ca801747a0e43bfe44ea03653e6be60f /textproc/icu | |
parent | 9f9945c837f67a0beb5c703b359782a8cca84e83 (diff) | |
download | pkgsrc-b18d76cfd3a4171b60798b1bcbd939d14989a283.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 |