build: build with CAML_NAME_SPACE
authorPino Toscano <ptoscano@redhat.com>
Wed, 29 May 2019 09:48:47 +0000 (11:48 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 29 May 2019 09:55:36 +0000 (10:55 +0100)
This way no non-namespaced OCaml C symbols are used, reducing the risk
of clashes with other code.

Makefile.in

index 8864725..e01385f 100644 (file)
@@ -27,6 +27,7 @@ INSTALL               = @INSTALL@
 
 CC             = @CC@
 CFLAGS         = @CFLAGS@ @AUGEAS_CFLAGS@ @LIBXML2_CFLAGS@ \
+                 -DCAML_NAME_SPACE \
                  -fPIC -I$(shell ocamlc -where) -Wall -Werror
 LDFLAGS                = @LDFLAGS@
 LIBS           = @AUGEAS_LIBS@ @LIBXML2_LIBS@ @LIBS@