summaryrefslogtreecommitdiff
path: root/bindings
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-10-04 00:07:50 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-10-04 00:07:50 +0000
commit3b802476d24a6b8c7d1e645f99b4c25ef6e97809 (patch)
tree9f00f8607e6c1917fc7d2d626ec47ad6dd12d6e0 /bindings
parenta30b0ee959b53e83ed3697ee0b704a493829dc04 (diff)
downloadllvm-3b802476d24a6b8c7d1e645f99b4c25ef6e97809.tar.gz
llvm-3b802476d24a6b8c7d1e645f99b4c25ef6e97809.tar.bz2
llvm-3b802476d24a6b8c7d1e645f99b4c25ef6e97809.tar.xz
Do use the actual ocaml stdlib (not the install dir) to find the
caml/*.h headers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42599 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/ocaml/Makefile.ocaml5
1 files changed, 2 insertions, 3 deletions
diff --git a/bindings/ocaml/Makefile.ocaml b/bindings/ocaml/Makefile.ocaml
index b157c3194e..278b31ea32 100644
--- a/bindings/ocaml/Makefile.ocaml
+++ b/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