[libvirt] [ocaml PATCH] build: build with CAML_NAME_SPACE

Pino Toscano ptoscano at redhat.com
Tue May 28 08:29:43 UTC 2019


This way no non-namespaced OCaml C symbols are used, reducing the risk
of clashes with other code.

Signed-off-by: Pino Toscano <ptoscano at redhat.com>
---
 libvirt/Makefile.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libvirt/Makefile.in b/libvirt/Makefile.in
index 3a68aed..77462c7 100644
--- a/libvirt/Makefile.in
+++ b/libvirt/Makefile.in
@@ -19,6 +19,7 @@ WIN32		= @WIN32@
 
 CFLAGS		= @CFLAGS@ \
 		   @LIBVIRT_CFLAGS@ \
+		   -DCAML_NAME_SPACE \
 		   -I.. \
 		   -I"$(shell ocamlc -where)" \
 		   @DEBUG@ @WARNINGS@ @CFLAGS_FPIC@
-- 
2.21.0




More information about the libvir-list mailing list