Skip to content

Commit c6ba38d

Browse files
authored
xenctrl-ext: link stubs explicitly agains libxenctrl (#7135)
The xenctrlext_stubs use libxenctrl symbols (e.g. xc_cpumap_alloc) but did not declare it as a link dependency. So, the produced dllxenctrl_ext_stubs.so had no NEEDED entry for libxenctrl. When I try to run `dune utop` on my Debian Trixie the loading fails with: Fatal error: cannot load shared library dllxenctrl_ext_stubs Reason: .../ocaml/libs/xenctrl-ext/dllxenctrl_ext_stubs.so: undefined symbol: xc_cpumap_alloc This patch adds -lxenctrl to c_library_flags so the stubs declare the dependency themselves.
2 parents 362b992 + 3d86913 commit c6ba38d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • ocaml/libs/xenctrl-ext

ocaml/libs/xenctrl-ext/dune

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
(language c)
77
(names xenctrlext_stubs)
88
)
9+
(c_library_flags (-lxenctrl))
910
)
1011

0 commit comments

Comments
 (0)