[llvm-commits] [llvm] r42599 - /llvm/trunk/bindings/ocaml/Makefile.ocaml

Gordon Henriksen gordonhenriksen at mac.com
Wed Oct 3 17:07:51 PDT 2007


Author: gordon
Date: Wed Oct  3 19:07:50 2007
New Revision: 42599

URL: http://llvm.org/viewvc/llvm-project?rev=42599&view=rev
Log:
Do use the actual ocaml stdlib (not the install dir) to find the
caml/*.h headers.

Modified:
    llvm/trunk/bindings/ocaml/Makefile.ocaml

Modified: llvm/trunk/bindings/ocaml/Makefile.ocaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/ocaml/Makefile.ocaml?rev=42599&r1=42598&r2=42599&view=diff

==============================================================================
--- llvm/trunk/bindings/ocaml/Makefile.ocaml (original)
+++ llvm/trunk/bindings/ocaml/Makefile.ocaml Wed Oct  3 19:07:50 2007
@@ -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
 





More information about the llvm-commits mailing list