Skip to content
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

transitive dependencies on "otherlibs" #8

Open
bsansouci opened this issue Jun 15, 2016 · 1 comment
Open

transitive dependencies on "otherlibs" #8

bsansouci opened this issue Jun 15, 2016 · 1 comment

Comments

@bsansouci
Copy link
Contributor

I have a local change that adds a new property in the package.json that allows you to link against any of the otherlibs or anything that ocamlfind can find (as it runs ocamlfind query [name] under the hood).
I used to get sexplib to compile.

The problem is that the way I implemented it was by adding the cma file of that dependency in the command that generates the lib.cma, but it doesn't seem to be bundled properly. This means that when compile A which depends on sexplib, I get errors like Reference to undefined global 'Bigarray'. This might mean that the right way to implement this is by making a flat list of all of those dependencies and linking them at the very end when building the executable. This is really annoying as it totally breaks the encapsulation of the lib, and might have some partial-build times impact.

I'm just writing this issue here to keep track of it. Right now I'll just propagate that field up the chain so we can get Core to build.

ps: this is what I'm calling otherlibs

@chenglou
Copy link
Collaborator

library files are meant to be used in conjunction with findlib btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants