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

Building windows static library #955

Closed
carlo-quinonez opened this issue May 6, 2020 · 1 comment
Closed

Building windows static library #955

carlo-quinonez opened this issue May 6, 2020 · 1 comment

Comments

@carlo-quinonez
Copy link

We use libsodium when building a native module for NodeJS and would like to statically link the library.

On Ubuntu, we can build libsodium with ./configure --with-pic --disable-pie --enable-static and can link against the libsodium.a file without having to include any additional files when we distribute our native Node module.

How can we accomplish the same thing on Windows?

@jedisct1
Copy link
Owner

jedisct1 commented May 6, 2020

The pre-built files include libraries that can be statically linked.

And in your project, define SODIUM_STATIC.

@jedisct1 jedisct1 closed this as completed May 9, 2020
Repository owner locked and limited conversation to collaborators Aug 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants