diff options
author | Sverker Eriksson <[email protected]> | 2012-10-22 18:22:23 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-10-22 18:22:23 +0200 |
commit | b7b4abaeac8e559a3a4f587d46dc0014332b517e (patch) | |
tree | 48c5918b1bdc4187ba5aab841cee299f06bd6ebb /lib/crypto/c_src/crypto_callback.c | |
parent | 8d502f8f98a89678448d16a8a15e744d65603f01 (diff) | |
download | otp-b7b4abaeac8e559a3a4f587d46dc0014332b517e.tar.gz otp-b7b4abaeac8e559a3a4f587d46dc0014332b517e.tar.bz2 otp-b7b4abaeac8e559a3a4f587d46dc0014332b517e.zip |
crypto: Link crypto_callback statically
if static linking of openssl is used.
Diffstat (limited to 'lib/crypto/c_src/crypto_callback.c')
-rw-r--r-- | lib/crypto/c_src/crypto_callback.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/crypto/c_src/crypto_callback.c b/lib/crypto/c_src/crypto_callback.c index 32e690a8d1..81106b4cc2 100644 --- a/lib/crypto/c_src/crypto_callback.c +++ b/lib/crypto/c_src/crypto_callback.c @@ -156,8 +156,10 @@ DLLEXPORT struct crypto_callbacks* get_crypto_callbacks(int nlocks) return &the_struct; } +#ifdef HAVE_DYNAMIC_CRYPTO_LIB /* This is not really a NIF library, but we use ERL_NIF_INIT in order to * get access to the erl_nif API (on Windows). */ ERL_NIF_INIT(dummy, (ErlNifFunc*)NULL , NULL, NULL, NULL, NULL) +#endif |