Blame SOURCES/brltty-5.6-ocaml-add-flags.patch

ce24cc
diff --git a/Bindings/OCaml/Makefile.in b/Bindings/OCaml/Makefile.in
ce24cc
index 47f7201..a97f55c 100644
ce24cc
--- a/Bindings/OCaml/Makefile.in
ce24cc
+++ b/Bindings/OCaml/Makefile.in
ce24cc
@@ -55,25 +55,25 @@ OCAML_FILES = $(OCAML_MISC) $(OCAML_CLIBS) $(OCAML_BCLIB) $(OCAML_NCLIB)
ce24cc
 all : $(OCAML_FILES)
ce24cc
 
ce24cc
 $(OCAML_CLIBS) : brlapi_stubs.$O brlapi
ce24cc
-	$(OCAMLMKLIB) $(API_LDFLAGS) -oc $(OCAML_LIB)_stubs brlapi_stubs.$O
ce24cc
+	$(OCAMLMKLIB) -ldopt "$(LDFLAGS)" $(API_LDFLAGS) -oc $(OCAML_LIB)_stubs brlapi_stubs.$O
ce24cc
 
ce24cc
 $(OCAML_BCLIB) : $(OCAML_CLIBS) brlapi.cmo
ce24cc
-	$(OCAMLC) -a $(OCAMLMKLIB_FLAGS) -o $(OCAML_LIB).cma brlapi.cmo
ce24cc
+	$(OCAMLC) -ccopt "$(CFLAGS)" -a $(OCAMLMKLIB_FLAGS) -o $(OCAML_LIB).cma brlapi.cmo
ce24cc
 
ce24cc
 $(OCAML_NCLIB) : $(OCAML_CLIBS) brlapi.cmx
ce24cc
-	$(OCAMLMKLIB) $(OCAMLMKLIBOPT_FLAGS) -o $(OCAML_LIB) brlapi.cmx
ce24cc
+	$(OCAMLMKLIB) -ldopt "$(LDFLAGS)" $(OCAMLMKLIBOPT_FLAGS) -o $(OCAML_LIB) brlapi.cmx
ce24cc
 
ce24cc
 brlapi.cmi: brlapi.mli
ce24cc
-	$(OCAMLC) -o $@ -c brlapi.mli
ce24cc
+	$(OCAMLC) -ccopt "$(CFLAGS)" -o $@ -c brlapi.mli
ce24cc
 
ce24cc
 brlapi.cmo: brlapi.ml brlapi.cmi
ce24cc
-	$(OCAMLC) -o $@ -c brlapi.ml
ce24cc
+	$(OCAMLC) -ccopt "$(CFLAGS)" -o $@ -c brlapi.ml
ce24cc
 
ce24cc
 brlapi.cmx: brlapi.ml brlapi.cmi
ce24cc
-	$(OCAMLOPT) -o $@ -c brlapi.cmx brlapi.ml
ce24cc
+	$(OCAMLOPT) -ccopt "$(CFLAGS)" -o $@ -c brlapi.cmx brlapi.ml
ce24cc
 
ce24cc
 brlapi_stubs.$O: $(SRC_DIR)/brlapi_stubs.c
ce24cc
-	$(OCAMLC) -I $(BLD_TOP)$(PGM_DIR) -I $(SRC_TOP)$(PGM_DIR) -c $(SRC_DIR)/brlapi_stubs.c
ce24cc
+	$(OCAMLC) -ccopt "$(CFLAGS)" -I $(BLD_TOP)$(PGM_DIR) -I $(SRC_TOP)$(PGM_DIR) -c $(SRC_DIR)/brlapi_stubs.c
ce24cc
 
ce24cc
 brlapi.mli : $(SRC_DIR)/main.mli constants.mli
ce24cc
 	cat $(SRC_DIR)/main.mli constants.mli > $@