diff options
author | Mike McClurg <mike.mcclurg@citrix.com> | 2011-06-21 18:01:51 +0100 |
---|---|---|
committer | Mike McClurg <mike.mcclurg@citrix.com> | 2011-06-21 18:01:51 +0100 |
commit | bec8caf43bb0949cea5930f6b3b74a2abf1b4486 (patch) | |
tree | 941b5b03f82194abb30bcab41d9b9134c1e980ac /tools/ocaml/common.make | |
parent | b6c23c86fe5a1a027d9e173d9cba7e89c8eb2d67 (diff) | |
download | xen-bec8caf43bb0949cea5930f6b3b74a2abf1b4486.tar.gz xen-bec8caf43bb0949cea5930f6b3b74a2abf1b4486.tar.bz2 xen-bec8caf43bb0949cea5930f6b3b74a2abf1b4486.zip |
tools/ocaml: ask compiler for correct library
OCaml libraries will live in /usr/local/ if the user compiles OCaml
from source. This patch asks the OCaml compiler where we should look
for libraries.
NB: it may be that we should do the same thing for the NetBSD case,
but I don't have a BSD box to test this out.
Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/ocaml/common.make')
-rw-r--r-- | tools/ocaml/common.make | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ocaml/common.make b/tools/ocaml/common.make index 04a0b6b1ff..17a300c807 100644 --- a/tools/ocaml/common.make +++ b/tools/ocaml/common.make @@ -9,7 +9,7 @@ OCAMLLEX ?= ocamllex OCAMLYACC ?= ocamlyacc CFLAGS += -fPIC -Werror -CFLAGS-$(CONFIG_Linux) += -I/usr/lib64/ocaml -I/usr/lib/ocaml +CFLAGS-$(CONFIG_Linux) += -I$(shell ocamlc -where) CFLAGS-$(CONFIG_NetBSD) += -I/usr/pkg/lib/ocaml -fPIC OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^ *\(-g\) .*/\1/p') |