From a843c63bf294a6ca1841f30f6d62c5379dbff7f4 Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Sun, 19 Jun 2022 21:03:49 +0200 Subject: [PATCH] fix(Crypto): libPocoCrypto.so: undefined reference to pthread_atfork when linking statically with OpenSSL 1.1 #3073 --- Crypto/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Crypto/Makefile b/Crypto/Makefile index 39a95bfef..732eb031c 100644 --- a/Crypto/Makefile +++ b/Crypto/Makefile @@ -6,7 +6,10 @@ include $(POCO_BASE)/build/rules/global -SYSLIBS += -lssl -lcrypto +# see https://github.com/pocoproject/poco/issues/3073 +GLOBAL_SYSLIBS := $(SYSLIBS) +SYSLIBS = -lssl -lcrypto +SYSLIBS += $(GLOBAL_SYSLIBS) objects = Cipher CipherFactory CipherImpl CipherKey CipherKeyImpl \ CryptoException CryptoStream CryptoTransform \