diff --git a/llvm/bindings/ocaml/Makefile.ocaml b/llvm/bindings/ocaml/Makefile.ocaml index b157c3194eb6..278b31ea3223 100644 --- a/llvm/bindings/ocaml/Makefile.ocaml +++ b/llvm/bindings/ocaml/Makefile.ocaml @@ -14,9 +14,8 @@ include $(LEVEL)/Makefile.config -# CFLAGS needs to be set before Makefile.rules is included. Yes, ocaml puts its -# includes under its libdir. -CFLAGS += -I$(OCAML_LIBDIR) +# CFLAGS needs to be set before Makefile.rules is included. +CFLAGS += -I$(shell $(OCAMLC) -where) include $(LEVEL)/Makefile.common