configure.ac |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5a0e357f78759be09ab21e06156f1a749244c2c1
Author:     Andras Timar <[email protected]>
AuthorDate: Thu Oct 31 12:14:58 2019 +0100
Commit:     Andras Timar <[email protected]>
CommitDate: Thu Oct 31 14:28:19 2019 +0100

    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 <[email protected]>
    Tested-by: Andras Timar <[email protected]>

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],
                         [],
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to