forked from facebookarchive/pfff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modif-orig.txt
35 lines (31 loc) · 1.15 KB
/
modif-orig.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
I have some segmentation fault when I link with gtk and this small change below
fixed it. Not sure it was the real reason though.
last: added bin-annot
diff --git a/external/ocamlpcre/lib/Makefile b/external/ocamlpcre/lib/Makefile
index 678e656..b76c084 100644
--- a/external/ocamlpcre/lib/Makefile
+++ b/external/ocamlpcre/lib/Makefile
@@ -4,7 +4,8 @@ TOP=../../../
OCAMLMAKEFILE = ../OCamlMakefile
SOURCES = pcre.mli pcre.ml pcre_stubs.c
-CFLAGS = -O2 -I $(PCRE_INCLUDE)
+CFLAGS = -g -I $(PCRE_INCLUDE)
+#-O2
CLIBS = pcre
RESULT = pcre
diff --git a/external/ocamlpcre/lib/pcre.ml b/external/ocamlpcre/lib/pcre.ml
index d7e663b..2ee0c6b 100644
--- a/external/ocamlpcre/lib/pcre.ml
+++ b/external/ocamlpcre/lib/pcre.ml
@@ -179,7 +179,12 @@ let version = pcre_version ()
let config_utf8 = pcre_config_utf8 ()
let config_newline = pcre_config_newline ()
let config_link_size = pcre_config_link_size ()
-let config_match_limit = pcre_config_match_limit ()
+let config_match_limit =
+ (*
+ pad: BUGGGGG ??? it cause some segfault on my Mac ...
+ pcre_config_match_limit ()
+ *)
+ 10
let config_stackrecurse = pcre_config_stackrecurse ()