aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/crypto_callback.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2012-10-22 18:22:23 +0200
committerSverker Eriksson <[email protected]>2012-10-22 18:22:23 +0200
commitb7b4abaeac8e559a3a4f587d46dc0014332b517e (patch)
tree48c5918b1bdc4187ba5aab841cee299f06bd6ebb /lib/crypto/c_src/crypto_callback.c
parent8d502f8f98a89678448d16a8a15e744d65603f01 (diff)
downloadotp-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.c2
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