summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2019-10-31 12:14:58 +0100
committerAndras Timar <andras.timar@collabora.com>2019-10-31 14:28:19 +0100
commit5a0e357f78759be09ab21e06156f1a749244c2c1 (patch)
treec8b704e7685d1789cc64d1a8d04742e8bfed75aa
parent058398ee1b05ba64b323749cabd9ffe4883b749f (diff)
add -lssl and -lcrypto to LIBS, if SSL is enabled
Without this the linking with static poco libs failed on Ubuntu 16.04 and 18.04. Interestingly on other distros, including Debian 8, 9, 10, and CentOS 7, 8, and openSUSE, this patch was not necessary. Change-Id: I96c90ab5e960e8843db9b835f6e1a0417c7b48f8 Reviewed-on: https://gerrit.libreoffice.org/81836 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index af9d0aa87..bab2578fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -658,6 +658,9 @@ AC_SUBST(ENABLE_SUPPORT_KEY)
LIBS="$LIBS -lPocoNet${POCO_DEBUG_SUFFIX} -lPocoNetSSL${POCO_DEBUG_SUFFIX} -lPocoUtil${POCO_DEBUG_SUFFIX} -lPocoJSON${POCO_DEBUG_SUFFIX} -lPocoXML${POCO_DEBUG_SUFFIX} -lPocoFoundation${POCO_DEBUG_SUFFIX} -lPocoCrypto${POCO_DEBUG_SUFFIX}"
+AS_IF([test "$ENABLE_SSL" = "true"],
+ [LIBS="$LIBS -lssl -lcrypto"])
+
AS_IF([test "$ENABLE_IOSAPP" != "true"],
[AC_CHECK_HEADERS([LibreOfficeKit/LibreOfficeKit.h],
[],