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