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
lib/ vs lib64/ #8
Comments
Thanks for the report. I suppose we could just put both in the search path, unless there's a way to ask the environment for where to look? |
Well, you could determine the architecture easily. But I wouldn't take the chance to assume, that it always corresponds. I bet you have compiled this with One would have to figure out, how this is determined by autotools (I guess?). But then the build process probably becomes more tightly coupled to how libffi is built, which may be harder to maintain in the long run. Should I create PR adding both to the search path? |
Unfortunately, 64-bit architecture doesn't necessarily mean it will be in |
Yes, it works now. Thanks! Closing this. |
Okay, I am releasing this as 0.5.3. Thanks! |
Just tried compiling this crate on a 64-bit NixOS system.
And I ran into the issue that the compiled native
libffi
ended up in alib64/
folder, not inlib/
. So changing line 23 ofbuild.rs
fromto
made it compile for me. I assume a more robust solution would be to just add both variants to the search path for rustc?
For reference, this is the Nix expression I used to setup the environment:
The text was updated successfully, but these errors were encountered: