From 14d7680b0075aef5916f82b7bc7ebfcdd38255c5 Mon Sep 17 00:00:00 2001
From: Gordon Henriksen <gordonhenriksen@mac.com>
Date: Thu, 4 Oct 2007 00:07:50 +0000
Subject: [PATCH] Do use the actual ocaml stdlib (not the install dir) to find
 the caml/*.h headers.

llvm-svn: 42599
---
 llvm/bindings/ocaml/Makefile.ocaml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

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