math/orpie: unbreak against safe-by-default strings in OCaml 4.06+.
This commit is contained in:
parent
f59477a324
commit
65849f9867
1 changed files with 19 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
--- Makefile.in.orig
|
||||
--- Makefile.in.orig 2014-04-12 01:43:31 UTC
|
||||
+++ Makefile.in
|
||||
@@ -81,7 +81,7 @@ CURSES_OOBJS = $(CURSES_CMX) $(CURSES_CO
|
||||
@@ -81,7 +81,7 @@ CURSES_OOBJS = $(CURSES_CMX) $(CURSES_COBJS)
|
||||
GSL_CMO = gsl/gsl_error.cmo gsl/gsl_blas.cmo gsl/gsl_complex.cmo gsl/gsl_matrix.cmo gsl/gsl_matrix_complex.cmo \
|
||||
gsl/gsl_vector.cmo gsl/gsl_vector_complex.cmo gsl/gsl_vector_flat.cmo gsl/gsl_matrix_flat.cmo \
|
||||
gsl/gsl_vector_complex_flat.cmo gsl/gsl_matrix_complex_flat.cmo gsl/gsl_vectmat.cmo \
|
||||
|
@ -9,7 +9,7 @@
|
|||
GSL_CMX = $(GSL_CMO:.cmo=.cmx)
|
||||
GSL_COBJS = gsl/mlgsl_error.o gsl/mlgsl_blas.o gsl/mlgsl_blas_complex.o gsl/mlgsl_complex.o gsl/mlgsl_blas_float.o \
|
||||
gsl/mlgsl_blas_complex_float.o gsl/mlgsl_matrix_complex.o gsl/mlgsl_matrix_double.o gsl/mlgsl_matrix_float.o \
|
||||
@@ -201,7 +201,7 @@
|
||||
@@ -201,7 +201,7 @@ gsl-byte: $(GSL_BOBJS)
|
||||
GSL_INCLUDES = -I ./gsl
|
||||
GSL_BFLAGS = -g $(GSL_INCLUDES) -thread
|
||||
GSL_OFLAGS = $(GSL_INCLUDES) -thread
|
||||
|
@ -18,26 +18,34 @@
|
|||
|
||||
gsl/%.cmi : gsl/%.mli
|
||||
$(OCAMLC) -c $(GSL_BFLAGS) $<
|
||||
@@ -264,10 +264,7 @@
|
||||
@@ -264,13 +264,10 @@ units/%.cmi : units/%.mli
|
||||
units/%.cmo : units/%.ml
|
||||
$(OCAMLC) -c $(UNITS_BFLAGS) $<
|
||||
|
||||
-units/%.o : units/%.ml
|
||||
- $(OCAMLOPT) -c $(UNITS_OFLAGS) $<
|
||||
-
|
||||
-units/%.cmx : units/%.ml
|
||||
+units/%.o units/%.cmx : units/%.ml
|
||||
$(OCAMLOPT) -c $(UNITS_OFLAGS) $<
|
||||
|
||||
-units/%.cmx : units/%.ml
|
||||
- $(OCAMLOPT) -c $(UNITS_OFLAGS) $<
|
||||
|
||||
@@ -278,22 +275,15 @@
|
||||
-
|
||||
# generic build rules for toplevel directory
|
||||
%.cmi : %.mli
|
||||
$(OCAMLC) -c $(BFLAGS) $<
|
||||
@@ -278,21 +275,20 @@ units/%.cmx : units/%.ml
|
||||
%.cmo : %.ml
|
||||
$(OCAMLC) -c $(BFLAGS) $<
|
||||
|
||||
-%.o : %.ml
|
||||
- $(OCAMLOPT) -c $(OFLAGS) $<
|
||||
-
|
||||
+interface_draw.cmx: interface_draw.ml
|
||||
+ $(OCAMLOPT) -c $(OFLAGS) -unsafe-string $<
|
||||
|
||||
-%.cmx : %.ml
|
||||
+interface_main.cmx: interface_main.ml
|
||||
+ $(OCAMLOPT) -c $(OFLAGS) -unsafe-string $<
|
||||
+
|
||||
+%.o %.cmx : %.ml
|
||||
$(OCAMLOPT) -c $(OFLAGS) $<
|
||||
|
||||
|
@ -47,11 +55,10 @@
|
|||
-%.ml : %.mly
|
||||
+%.ml %.mli : %.mly
|
||||
$(OCAMLYACC) -v $<
|
||||
|
||||
-
|
||||
-%.mli : %.mly
|
||||
- $(OCAMLYACC) -v $<
|
||||
-
|
||||
-
|
||||
|
||||
|
||||
# Emacs tags
|
||||
############
|
||||
|
|
Loading…
Reference in a new issue