pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/groonga Change hack for clang with optimization.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a6e862e98eae
branches:  trunk
changeset: 632662:a6e862e98eae
user:      obache <obache%pkgsrc.org@localhost>
date:      Thu Apr 03 07:16:49 2014 +0000

description:
Change hack for clang with optimization.
unlimit datasize (require over 7GB memory on FreeBSD-10.0 (amd64).

diffstat:

 textproc/groonga/hacks.mk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 0d30e55846f4 -r a6e862e98eae textproc/groonga/hacks.mk
--- a/textproc/groonga/hacks.mk Thu Apr 03 07:12:01 2014 +0000
+++ b/textproc/groonga/hacks.mk Thu Apr 03 07:16:49 2014 +0000
@@ -1,14 +1,14 @@
-# $NetBSD: hacks.mk,v 1.1 2014/02/25 05:14:37 obache Exp $
+# $NetBSD: hacks.mk,v 1.2 2014/04/03 07:16:49 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-*)
+# Build with optimization. Avoids crash in expr.c
+.if !empty(CC_VERSION:Mclang-*) && !empty(CFLAGS:M-O*)
 PKG_HACKS+=    clang-optimization
-BUILDLINK_TRANSFORM+=  rename:-O[0-9]*:-O0
+UNLIMIT_RESOURCES=     datasize
 .endif
 
 .endif



Home | Main Index | Thread Index | Old Index