-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add feature for including openssl-sys #29
Conversation
Added a new feature (openssl-static) that includes the openssl-sys crate to fix static builds. Renamed src/lib.rs to src/bindgen.rs and added a new lib.rs that re-exports everything from bindgen.rs to prevent future bindgen runs from reverting this change. This fixes sgrif#25
I think #25 was missing a reliable reproduction; here is one: https://github.com/golddranks/pq_link_test I built it against your fork of pq-sys, and indeed, adding the feature openssl-static fixes the build. |
Now requires a version between 0.9.0 and 0.11.
0945275
to
9ed1a65
Compare
Any chance of merging this? |
@Raniz85 I got recently the rights to merge PR's in here, but I want to do a check of the current status of the crate first before merging anything. Unfortunately I haven't found the necessary time yet. |
While thinking a bit more about this PR: What's the expected use case for this? You mention fixing static builds, but this change on your own won't help you there much as you need to enable the corresponding feature anyway. Most people will likely use |
It's been more than a year since I worked on this so my memory is hazy, but if I remember correctly, just adding a dependency on openssl-sys isn't enough, the dependency (or rather the If the order is reversed, compilation will fail. Read the linked issue and the issues referenced there, they contain quite a lot of information and debugging. |
I can confirm that there were certainly problems with the linking ordrer. What made them hard to deal with was that they were somewhat non-deterministic. |
@weiznich Any progress on this? Either reject it or merge it please |
@Raniz85 I had no time to look into this yet, so there is no progress here. To be clear even to decide if this should be rejected or not I need time to understand the underlying problem. Unfortunately I cannot say when I will find the required time to look into this. |
Closed in favor of #46 |
Added a new feature (openssl-static) that includes the openssl-sys crate
to fix static builds.
Renamed src/lib.rs to src/bindgen.rs and added a new lib.rs that
re-exports everything from bindgen.rs to prevent future bindgen runs
from reverting this change.
This fixes #25