summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-02-25 05:14:37 +0000
committerobache <obache@pkgsrc.org>2014-02-25 05:14:37 +0000
commit25d7e6928f046deba819ab5795e33b65ca309743 (patch)
tree772444e95858d83af5b43f6e115bb394d67bf7c7 /textproc
parent669c0b3fef752c4e9887798e8f4f7e308810ae94 (diff)
downloadpkgsrc-25d7e6928f046deba819ab5795e33b65ca309743.tar.gz
from joerg's bulk build, disable optimization for NetBSD-current/amd64 with clang.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/groonga/hacks.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/textproc/groonga/hacks.mk b/textproc/groonga/hacks.mk
new file mode 100644
index 00000000000..b88280208e4
--- /dev/null
+++ b/textproc/groonga/hacks.mk
@@ -0,0 +1,14 @@
+# $NetBSD: hacks.mk,v 1.1 2014/02/25 05:14:37 obache Exp $
+
+.if !defined(GROONGA_HACKS_MK)
+GROONGA_HACKS_MK= # defined
+
+.include "../../mk/compiler.mk"
+
+# Build without optimization. Avoids crash in expr.c
+.if !empty(MACHINE_PLATFORM:MNetBSD-6.99.[0-9]*-x86_64) && !empty(CC_VERSION:Mclang-*)
+PKG_HACKS+= clang-optimization
+BUILDLINK_TRANSFORM+= rename:-O[0-9]*:-O0
+.endif
+
+.endif