Fix to build with new OCaml 3.11 and above.
[ocaml-ancient.git] / Makefile
index 41c3cee..5eda549 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,8 @@ include Makefile.config
 CC     := gcc
 CFLAGS := -g -fPIC -Wall -Werror \
        -DOCAML_VERSION_MAJOR=$(OCAML_VERSION_MAJOR) \
-       -DOCAML_VERSION_MINOR=$(OCAML_VERSION_MINOR)
+       -DOCAML_VERSION_MINOR=$(OCAML_VERSION_MINOR) \
+       -I$(shell ocamlc -where)
 
 OCAMLCFLAGS    := -g
 OCAMLCPACKAGES := -package unix