980a2bed3b
Unfortunately this requires a bit of trickery with pkg-config to get to work. The root issue is that the mirage-xen assumes that we use the default libdir of dune ($out/lib) whereas we install to an OCaml version-specific site-lib directory. Thus the manually created pkg-config file makes wrong assumptions (which warrants a patch) and the .pc file is installed to the wrong location (which is fixed with a mv invocation).
13 lines
336 B
Diff
13 lines
336 B
Diff
diff --git a/lib/bindings/mirage-xen.pc b/lib/bindings/mirage-xen.pc
|
|
index a03a217..8499aa4 100644
|
|
--- a/lib/bindings/mirage-xen.pc
|
|
+++ b/lib/bindings/mirage-xen.pc
|
|
@@ -1,6 +1,6 @@
|
|
-prefix=${pcfiledir}/../..
|
|
+prefix=@out@
|
|
exec_prefix=${prefix}
|
|
-libdir=${exec_prefix}/lib
|
|
+libdir=@OCAMLFIND_DESTDIR@
|
|
|
|
Name: mirage-xen
|
|
Version: 6.0.0
|