-
Notifications
You must be signed in to change notification settings - Fork 484
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
Always build "internal" library as static #1725
Conversation
Hmm -- does this also guarantee that the (test) executables then are statically linked (to the symbols in the internal lib) while they're still dynamically linked to the symbols in the public (shared) lib? |
I tested the patch and it looked good. Test binaries still linked to
It says |
Yes, I believe so. (Based on the test executables now running if |
Signed-off-by: Spencer Wilson <[email protected]>
Signed-off-by: Spencer Wilson <[email protected]>
ff7164c
to
fe7f7ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Edit: I always forget to use my personal account... sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (But from this account)
Thanks @baentsch! The discussion in the OQS status call yesterday was that we would tag an -rc2 after this landed, which I will do tonight unless I hear otherwise. |
* Always build oqs-internal library as static Signed-off-by: Spencer Wilson <[email protected]> Signed-off-by: Eddy Kim <[email protected]>
Since
liboqs-internal
(see #1667) is never actually installed on the user's system, it doesn't make sense to build it as a shared library and then link the test programs against it. This PR forcesliboqs-internal
to be built as a static library regardless of theBUILD_SHARED_LIBS
variable.Fixes #1723.