about summary refs log tree commit diff
path: root/src/libmain/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-22T13·49+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-22T14·51+0100
commit840056af04561e7fed31c459948be7c0e038864a (patch)
tree6175fd163cc973c50a50046b000837a3016ccc0b /src/libmain/local.mk
parentd361901bfe50f43ed1b94e89c95718b072f07821 (diff)
Make OpenSSL usage thread-safe
OpenSSL can randomly segfault unless we register a callback function
to do locking.

https://www.openssl.org/docs/manmaster/crypto/threads.html
Diffstat (limited to 'src/libmain/local.mk')
-rw-r--r--src/libmain/local.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmain/local.mk b/src/libmain/local.mk
index 16dbf752823d..4ff114e4b332 100644
--- a/src/libmain/local.mk
+++ b/src/libmain/local.mk
@@ -6,6 +6,8 @@ libmain_DIR := $(d)
 
 libmain_SOURCES := $(wildcard $(d)/*.cc)
 
+libutil_LDFLAGS = $(OPENSSL_LIBS)
+
 libmain_LIBS = libstore libutil libformat
 
 libmain_ALLOW_UNDEFINED = 1