pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

freeswitch-core: Add patch to included zrtp to avoid -lgcc



Module Name:	pkgsrc-wip
Committed By:	Greg Troxel <gdt%ir.bbn.com@localhost>
Pushed By:	gdt
Date:		Thu Oct 5 20:51:47 2017 -0400
Changeset:	2c9d770cbf0dfda297ec2d45597fa69ca12143ea

Modified Files:
	freeswitch-core/distinfo
Added Files:
	freeswitch-core/patches/patch-libs_libzrtp_third__party_bnlib_configure.ac

Log Message:
freeswitch-core: Add patch to included zrtp to avoid -lgcc

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2c9d770cbf0dfda297ec2d45597fa69ca12143ea

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 freeswitch-core/distinfo                           |  1 +
 ...ch-libs_libzrtp_third__party_bnlib_configure.ac | 29 ++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diffs:
diff --git a/freeswitch-core/distinfo b/freeswitch-core/distinfo
index 309c82e25f..54720f739a 100644
--- a/freeswitch-core/distinfo
+++ b/freeswitch-core/distinfo
@@ -5,6 +5,7 @@ RMD160 (freeswitch-1.6.19.tar.xz) = 2e6514bb3f67cf7f464dd924541e95e1baab283f
 SHA512 (freeswitch-1.6.19.tar.xz) = 2cf678b7035e17d05f3745921dccafd2fb874cf927fdde5bd274cc07a42e372e941bedaa9569c59d09882eed02de9e874661a64a165e3de860fa6be7adc365ae
 Size (freeswitch-1.6.19.tar.xz) = 33497296 bytes
 SHA1 (patch-configure) = 76661c5bd14857de5fcea046d58f2ec46c04d767
+SHA1 (patch-libs_libzrtp_third__party_bnlib_configure.ac) = 2eff9bde9e663fb6512ff6ce3261cccbb58b9d03
 SHA1 (patch-libs_spandsp_configure) = ace14e1f5ed3318c2f3a0ec7f47bbdf6308a2f34
 SHA1 (patch-libs_spandsp_unpack__gsm0610__data.sh) = facfda4025aeb36f9277b088dace41442417ec9c
 SHA1 (patch-libs_unimrcp_configure) = d4ce12c4bc47e89ac60675c9fc9d67dd546061ba
diff --git a/freeswitch-core/patches/patch-libs_libzrtp_third__party_bnlib_configure.ac b/freeswitch-core/patches/patch-libs_libzrtp_third__party_bnlib_configure.ac
new file mode 100644
index 0000000000..268564ad9c
--- /dev/null
+++ b/freeswitch-core/patches/patch-libs_libzrtp_third__party_bnlib_configure.ac
@@ -0,0 +1,29 @@
+$NetBSD$
+
+Remove old hack to deal with -lgcc.  This seems unnnecessary in the
+modern era, and breaks the build on NetBSD.  To be re-evaulated before
+promotion to pkgsrc proper.
+
+--- libs/libzrtp/third_party/bnlib/configure.ac.orig	2017-07-13 12:07:30.000000000 +0000
++++ libs/libzrtp/third_party/bnlib/configure.ac
+@@ -87,18 +87,9 @@ fi
+ rm -f conftest*
+ ])
+   fi
+-
+-  # If we're using GCC, perform some Deep Magic to enable the result to
+-  # link cleanly with code compiled with a compiler that doesn't understand
+-  # GCC's support library (-lgcc).  Do a link, to relocatable object form,
+-  # with just -lgcc.  If it's not GCC, do the normal -c thing.
+-  # These substitutions are used in the Makefile to force that behaviour.
+-  GCCMAGIC1='-Wl,-r -nostdlib'
+-  GCCMAGIC2=-lgcc
+-else
+-  GCCMAGIC1=-c
+-  GCCMAGIC2=
+ fi
++GCCMAGIC1=-c
++GCCMAGIC2=
+ AC_SUBST(GCCMAGIC1)
+ AC_SUBST(GCCMAGIC2)
+ 


Home | Main Index | Thread Index | Old Index