-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide libdir, ld and ldflags into the distribution to be usable by dune #66
Conversation
3180b66
to
592af0b
Compare
'The patch differs from the initial patch of @TheLortex where a sexp-expression is provided about |
Hi, thank you for this PR. I'm not sure using a S-expression should work here.
So they are not part of the same language, and precisely I'm not sure that As a reminder, here are how there different files are used for the mirage dunification project:
|
My idea then, specially about the dunification of MirageOS is the do the translation between arguments provided by these files to s-expression by generated (by An other solution is to explicitly provide cflags .sexp and libs .sexp to notice a special format of them by the extension. |
5c91ef7
to
591ae45
Compare
b6f8622
to
aaba87a
Compare
About this PR and #50, they make me slightly uneasy due to duplication of information (in .pc and flags/). In a Mirage3 world (ocamlbuild), Would another path be implement the required pkg-config parts as OCaml library? |
It's correct, but according generation of these files, we still follow what is provided by
From what I know about libraries (like However, in other side, I'm not sure that is easily possible to get off Then, we can think and do the choice about the right direction (and surely properly delete |
Another diff, between files provided in this PR and About this specific question, I try to find an uniform way which concerns only (I think) |
Stepping back a bit to get the big picture -- the goal here is to somehow integrate As far as I can tell, the dependencies on
and we control all of these packages, therefore we can change the whole stack as we see fit. Now, I built/inherited the current Q: What are the available mechanisms for a In other words, are we limited to expansion of the content of "some file published by X"? How does the location of "some file" get determined? What formats of "some file" can Without understanding what's available I can't offer any potential solutions / replacements for |
I did mirage/mirage#1018 to not lose what we talk in this issue. Please continue to this issue instead this PR. |
06f955f
to
b7e6f9c
Compare
a6e11b2
to
fa071a3
Compare
@dinosaure As I understand it, this PR is currently out of date / "to be replaced by something else"? Or should it be considered for merging? |
Out of date 👍 ! |
Some information are missed (about #50). This PR add some others file to be usable by
dune
and compile/link correctly unikernels. Into details,dune
with or withoutduniverse
is able to load some information available from files.In your case,
dune
can loads files located into$(opam config var lib)/ocaml-freestanding/*
(with expansion of%{lib:ocaml-freestanding:*}
). Currently, onlycflags
andlibs
are provided. This PR addsld
,libdir
andldflags
.