mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
configure checks just for ocamlc, but the tools in tools/ocaml depend also on ocamlfind. On my workstation I have just ocamlc installed, but no ocamlfind. As a result make will fail. Update configure.ac to check also for OCAMLFIND, update various Makefiles and replace hardcoded ocamlfind string with $(OCAMLFIND) Please rerun autogen.sh after applying this patch. Signed-off-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
23 lines
601 B
Makefile
23 lines
601 B
Makefile
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
CC ?= gcc
|
|
OCAMLOPT ?= ocamlopt
|
|
OCAMLC ?= ocamlc
|
|
OCAMLMKLIB ?= ocamlmklib
|
|
OCAMLDEP ?= ocamldep
|
|
OCAMLLEX ?= ocamllex
|
|
OCAMLYACC ?= ocamlyacc
|
|
OCAMLFIND ?= ocamlfind
|
|
|
|
CFLAGS += -fPIC -Werror -I$(shell ocamlc -where)
|
|
|
|
OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^ *\(-g\) .*/\1/p')
|
|
OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -cc $(CC) -w F -warn-error F
|
|
OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
|
|
|
|
VERSION := 4.1
|
|
|
|
OCAMLDESTDIR ?= $(DESTDIR)$(shell $(OCAMLFIND) printconf destdir)
|
|
|
|
o= >$@.new && mv -f $@.new $@
|