This is an automated email from the ASF dual-hosted git repository.
ardovm pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new 0ca5b4b7b8 Fix including OpenSSL dynamic libraries on Unix (#147)
0ca5b4b7b8 is described below
commit 0ca5b4b7b8e66fbc937f89173ce45fcc179e72b3
Author: Arrigo Marchiori <[email protected]>
AuthorDate: Fri May 6 21:16:33 2022 +0200
Fix including OpenSSL dynamic libraries on Unix (#147)
---
main/openssl/prj/d.lst | 4 ++--
main/scp2/source/ooo/file_library_ooo.scp | 11 +++++++----
main/scp2/source/ooo/makefile.mk | 2 +-
3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/main/openssl/prj/d.lst b/main/openssl/prj/d.lst
index 6b67f0fefc..bfd80e44f8 100644
--- a/main/openssl/prj/d.lst
+++ b/main/openssl/prj/d.lst
@@ -5,6 +5,6 @@ mkdir: %_DEST%\inc%_EXT%\external\openssl
..\%__SRC%\bin\ssleay32.dll %_DEST%\bin%_EXT%\ssleay32.dll
..\%__SRC%\lib\libeay32.lib %_DEST%\lib%_EXT%\libeay32.lib
..\%__SRC%\bin\libeay32.dll %_DEST%\bin%_EXT%\libeay32.dll
-..\%__SRC%\lib\libcrypto.a %_DEST%\lib%_EXT%\libcrypto.a
-..\%__SRC%\lib\libssl.a %_DEST%\lib%_EXT%\libssl.a
+..\%__SRC%\lib\libcrypto.* %_DEST%\lib%_EXT%\libcrypto.*
+..\%__SRC%\lib\libssl.* %_DEST%\lib%_EXT%\libssl.*
diff --git a/main/scp2/source/ooo/file_library_ooo.scp
b/main/scp2/source/ooo/file_library_ooo.scp
index d8eda0b4ba..6764fd3f67 100644
--- a/main/scp2/source/ooo/file_library_ooo.scp
+++ b/main/scp2/source/ooo/file_library_ooo.scp
@@ -1771,6 +1771,8 @@ File gid_File_Lib_Openssl
Dir = SCP2_OOO_BIN_DIR;
#ifdef WNT
Name = "ssleay32.dll";
+ #else
+ Name = "libssl.so";
#endif
End
#endif
@@ -1780,10 +1782,11 @@ File gid_File_Lib_Crypto
TXT_FILE_BODY;
Styles = (PACKED);
Dir = SCP2_OOO_BIN_DIR;
-
- #ifdef WNT
- Name = "libeay32.dll";
- #endif
+ #ifdef WNT
+ Name = "libeay32.dll";
+ #else
+ Name = "libcrypto.so";
+ #endif
End
#endif
diff --git a/main/scp2/source/ooo/makefile.mk b/main/scp2/source/ooo/makefile.mk
index 10f4805b39..13791ee7e1 100644
--- a/main/scp2/source/ooo/makefile.mk
+++ b/main/scp2/source/ooo/makefile.mk
@@ -223,7 +223,7 @@ SCPDEFS+=-DSYSTEM_NEON
.ENDIF
# if yes or unset (neon not used) -> do not install openssl library!
-.IF $(SYSTEM_OPENSSL) != "YES"
+.IF "$(SYSTEM_OPENSSL)" != "YES"
SCPDEFS+=-DOPENSSL
.ENDIF