[BRLTTY] [patch] fix installation of ocaml bindings for gentoo linux

William Hubbs w.d.hubbs at gmail.com
Thu Mar 24 10:05:32 EDT 2011


Hi Dave and all,

brltty 4.2 installs the ocaml bindings using the -ldconf option for
ocamlfind. For gentoo linux, we do not need that option, so I have written
a patch that allows us to override the -ldconf command line option. This
patch also preserves the default setting, so it will not affect anyone
unless they define OCAML_LDCONF on the make command line.

The patch is attached and should apply to current svn.

Dave, what do you think about applying this?

Thanks,

William

-------------- next part --------------
Index: Bindings/Caml/Makefile.in
===================================================================
--- Bindings/Caml/Makefile.in	(revision 5474)
+++ Bindings/Caml/Makefile.in	(working copy)
@@ -31,6 +31,7 @@
 OCAMLFIND = @OCAMLFIND@
 OCAML_INSTALL_TARGET = @OCAML_INSTALL_TARGET@
 OCAML_UNINSTALL_TARGET = @OCAML_UNINSTALL_TARGET@
+OCAML_LDCONF = -ldconf "$(OCAML_DESTDIR)/ld.conf"
 
 OCAML_LIB = $(API_NAME)
 OCAML_BCLIB = $(OCAML_LIB).cma
@@ -102,7 +103,7 @@
 install-with-findlib:
 	$(INSTALL_DIRECTORY) $(OCAML_DESTDIR)
 	$(OCAMLFIND) remove -destdir "$(OCAML_DESTDIR)" $(OCAML_LIB)
-	$(OCAMLFIND) install -destdir "$(OCAML_DESTDIR)" -ldconf "$(OCAML_DESTDIR)/ld.conf" $(OCAML_LIB) $(OCAML_FILES) 
+	$(OCAMLFIND) install -destdir "$(OCAML_DESTDIR)" $(OCAML_LDCONF) $(OCAML_LIB) $(OCAML_FILES) 
 
 uninstall: $(OCAML_UNINSTALL_TARGET)
 


More information about the BRLTTY mailing list