Skip to content

Commit 43809f3

Browse files
author
David Scott
committed
[xenlight]: add the necessary link options to allow the use of Xenlight.
This should be unnecessary -- "ocamlfind -package xenlight" should be enough. Ultimately if we improve the package this patch could be reverted. Signed-off-by: David Scott <[email protected]>
1 parent 4f355af commit 43809f3

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

ocaml/xapi/OMakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ UseCamlp4(rpc-light.idl, storage_interface)
1111

1212
CFLAGS += -std=gnu99 -Wall -Werror -I$(shell ocamlc -where)
1313

14+
XENLIGHT_LINK_FLAGS= -cclib -lxlutil -cclib -luuid -cclib -lblktapctl -cclib -lutil -cclib -lxenlight -cclib -lxenstore
1415
# Since the section didn't work, link against the xen libs for everything if we are building
1516
# xen stuff at all.
1617
# NB order of libraries is important: OMake cannot determine dependencies between libraries
1718
# (the same holds for OCaml packages)
1819
XEN_OCAML_LIBS = ../xenops/xenops ../auth/pam
1920
XEN_OCAMLINCLUDES =
20-
XEN_OCAMLPACKS = xenctrl xenstore cpuid
21+
XEN_OCAMLPACKS = xenctrl xenstore cpuid xenlight
2122
OCAML_CLIBS = $(XEN_OCAML_CLIBS) $(OCAML_CLIBS)
22-
OCAML_LINK_FLAGS = $(XEN_OCAML_LINK_FLAGS) $(OCAML_LINK_FLAGS)
23+
OCAML_LINK_FLAGS = $(XEN_OCAML_LINK_FLAGS) $(OCAML_LINK_FLAGS) $(XENLIGHT_LINK_FLAGS)
2324
CFLAGS = $(XEN_CFLAGS) $(CFLAGS)
2425
OCAMLINCLUDES = $(XEN_OCAMLINCLUDES) $(OCAMLINCLUDES)
2526
# xc.cma depends on uuid.cma

ocaml/xenops/OMakefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
OCAMLINCLUDES = ../xapi ../util
22
OCAML_LIBS = ../util/stats
33
OCAML_CLIBS += $(XEN_OCAML_CLIBS)
4-
OCAML_LINK_FLAGS+= $(XEN_OCAML_LINK_FLAGS)
4+
# XXX: these should all be specified in the ocamlfind META file:
5+
XENLIGHT_LINK_FLAGS= -cclib -lxlutil -cclib -luuid -cclib -lblktapctl -cclib -lutil -cclib -lxenlight -cclib -lxenstore
6+
OCAML_LINK_FLAGS+= $(XEN_OCAML_LINK_FLAGS) $(XENLIGHT_LINK_FLAGS)
7+
58
CFLAGS += $(XEN_CFLAGS)
69

7-
OCAMLPACKS = threads xenctrl xenstore stdext log cdrom netdev
10+
OCAMLPACKS = threads xenctrl xenstore stdext log cdrom netdev xenlight
811
OCAMLFLAGS += -thread
912

1013
LIBFILES = table xenops_helpers xenbus_utils balloon xenguestHelper domain hotplug device io statdev xal netman memory watch device_common squeeze squeeze_xen squeezed_rpc squeezed_state squeezed_rpc device_number stubdom

0 commit comments

Comments
 (0)