Kaydet (Commit) d2fda98a authored tarafından Miklos Vajna's avatar Miklos Vajna

xmlsec: replace macOS configure patch with backport

Change-Id: I5d3b16e09e585607a4261f8435d032d0d2ae4bd9
Reviewed-on: https://gerrit.libreoffice.org/59146
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 5a6d2392
...@@ -13,6 +13,8 @@ xmlsec_patches += xmlsec1-vc.patch.1 ...@@ -13,6 +13,8 @@ xmlsec_patches += xmlsec1-vc.patch.1
xmlsec_patches += xmlsec1-1.2.14_fix_extern_c.patch.1 xmlsec_patches += xmlsec1-1.2.14_fix_extern_c.patch.1
# Backport of <https://github.com/lsh123/xmlsec/pull/192>. # Backport of <https://github.com/lsh123/xmlsec/pull/192>.
xmlsec_patches += mscng-fixes.patch.1 xmlsec_patches += mscng-fixes.patch.1
# Backport of <https://github.com/lsh123/xmlsec/pull/197>.
xmlsec_patches += xmlsec1-macos.patch.1
$(eval $(call gb_UnpackedTarball_UnpackedTarball,xmlsec)) $(eval $(call gb_UnpackedTarball_UnpackedTarball,xmlsec))
......
...@@ -93,19 +93,3 @@ index 0689f11b..e7cd5c38 100644 ...@@ -93,19 +93,3 @@ index 0689f11b..e7cd5c38 100644
-- --
2.16.3 2.16.3
diff --git a/configure.ac b/configure.ac
index 951b3ebe..b66bdc10 100644
--- a/configure.ac
+++ b/configure.ac
@@ -165,7 +165,10 @@ dnl ==========================================================================
dnl Hack for autoconf version mismatch
dnl ==========================================================================
if test "z$shrext" = "z" ; then
- shrext=$shrext_cmds
+ AC_MSG_CHECKING(for shared library suffix)
+ module=no
+ eval shrext=$shrext_cmds
+ AC_MSG_RESULT($shrext)
fi
dnl ==========================================================================
From 9626654fa60825b5dc09a35bdfba6cb53d45e618 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@vmiklos.hu>
Date: Mon, 25 Jun 2018 19:49:54 +0200
Subject: [PATCH] configure: macOS improvement (#197)
* configure: fix shared library suffix on macOS
See <https://lists.gnu.org/archive/html/libtool/2010-04/msg00020.html>,
shrext_cmds is a command to be evaluated. Linux uses .so for both
loadable and shared libraries (in terms of libtool), so the problem is
not visible there, but on macOS this caused configure to literally look
for
libnspr4`test .$module = .yes && echo .so || echo .dylib`
for the nss backend, while nss provides libnspr4.dylib.
---
configure.ac | 5 ++++-
src/xmldsig.c | 10 +++++-----
src/xmlenc.c | 4 ++--
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac
index 2eb3f444..2adc625d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,7 +175,10 @@ dnl ==========================================================================
dnl Hack for autoconf version mismatch
dnl ==========================================================================
if test "z$shrext" = "z" ; then
- shrext=$shrext_cmds
+ AC_MSG_CHECKING(for shared library suffix)
+ module=no
+ eval shrext=$shrext_cmds
+ AC_MSG_RESULT($shrext)
fi
dnl ==========================================================================
--
2.16.4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment