-
Notifications
You must be signed in to change notification settings - Fork 71
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
Some simplifications and improvements to the configure script #132
Conversation
Also, I wonder about MPIR support. This library seems to be abandoned, e.g. |
e1e80bb
to
a967e22
Compare
The rationale for MPIR was the better support for Microsoft's compilers on Windows. I understand that there is still some activity on a Windows-specific fork of MPIR https://github.com/wbhart/mpir (github are the new web pages !) |
Hi, Could I suggest making the configure script more cross-compilation-friendly ? (i.e. using ocamlfind to look for ocaml* binaries and allow specifying a C toolchain prefix, to be used when calling pkg-config) |
I think this should belong to a different issue. Would switching to dune (#73) help ? |
That would work too, indeed. |
I have no experience with cross-compiling OCaml libraries. Can you point me at examples of OCaml packages that use the cross-compilation tricks you mention? |
Last commit in 2020. Last (and first) release in 2017. I'm not reassured. |
There are a few packages from However it should be sufficient to change the first lines of your
And prepend a variable named
|
We no longer need it to select between assembly files.
This works better on Mac with Homebrew, for example. Fall back to the old method if pkg-config is not available or doesn't work.
Namely: - Whether GMP was found from pkg-config - Which C includes were selected (in summary of configuration)
a967e22
to
fdb4643
Compare
This PR hasn't been reviewed, but I think it's good stuff and I'm going to merge it nonetheless. The discussion side-stepped in two directions: |
config.guess
script. We no longer need it to select between assembly files.pkg-config
to find GMP. This works better on Mac with Homebrew, for example. Fall back to the old method ifpkg-config
is not available or doesn't know about GMP.