mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Ocaml's lib directory layout changed in 5.0: the unix and dynlink
libraries have been moved out of the standard library directory into
subdirectories. The compiler still locates them automatically but emits
an ocaml_deprecated_auto_include alert when doing so.
This patch sets the paths explicitly with -I +unix and -I +dynlink to
silence the alert.
Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@vates.tech>
Reviewed-by: Andrii Sultanov <andriy.sultanov@vates.tech>
Tested-by: Andrii Sultanov <andriy.sultanov@vates.tech>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
(cherry picked from commit c3cf7c4121)
21 lines
548 B
Makefile
21 lines
548 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 -I$(shell ocamlc -where)
|
|
|
|
OCAMLINCLUDE += -I +unix -I +dynlink
|
|
OCAMLOPTFLAGS = -g -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) -w F -warn-error F
|
|
OCAMLCFLAGS += -g $(OCAMLINCLUDE) -w F -warn-error F
|
|
|
|
VERSION := $(shell $(XEN_ROOT)/version.sh $(XEN_ROOT)/xen/Makefile)
|
|
|
|
OCAMLDESTDIR ?= $(DESTDIR)$(shell $(OCAMLFIND) printconf destdir)
|