pidgin/pidgin

Parents a2a16969a8fa
Children 8b8c403b15ea
Use LT_LIB_M to determine if we need to link to the math library and link Pidgin to the X11 libraries

Gentoo ran into an issue with the gold linker without -lm. The original patch
and work came from Justin Lechner. https://bugs.gentoo.org/386079

Gentoo also ran into an issue with X11_LIBS not being added to pidgin. This
should already be implicit everywhere except for homebrew which patches X11
out of their build. Original patch/work came from and. https://bugs.gentoo.org/500762

Testing Done:
Installed and ran locally.

Reviewed at https://reviews.imfreedom.org/r/608/
--- a/COPYRIGHT Fri Apr 09 23:53:13 2021 -0500
+++ b/COPYRIGHT Sun Apr 11 03:27:46 2021 -0500
@@ -25,6 +25,7 @@
Thijs Alkemade
Manuel Amador
Matt Amato
+and
Josef Andrysek
Geoffrey Antos
Daniel Atallah
@@ -310,6 +311,7 @@
Julia Lawall
Peter Lawler
Vadim Lebedev
+Justin Lechner
Ho-seok Lee
Jean-Yves Lefort
Moses Lei
--- a/configure.ac Fri Apr 09 23:53:13 2021 -0500
+++ b/configure.ac Sun Apr 11 03:27:46 2021 -0500
@@ -91,6 +91,9 @@
AC_C_BIGENDIAN
+LT_LIB_M
+AC_SUBST(LIBM)
+
dnl Checks for library functions.
AC_TYPE_SIGNAL
AC_FUNC_STRFTIME
--- a/libpurple/Makefile.am Fri Apr 09 23:53:13 2021 -0500
+++ b/libpurple/Makefile.am Sun Apr 11 03:27:46 2021 -0500
@@ -313,8 +313,8 @@
$(GSTAPP_LIBS) \
$(GSTINTERFACES_LIBS) \
$(IDN_LIBS) \
- ciphers/libpurple-ciphers.la \
- -lm
+ $(LIBM) \
+ ciphers/libpurple-ciphers.la
AM_CPPFLAGS = \
-DDATADIR=\"$(datadir)\" \
--- a/pidgin/Makefile.am Fri Apr 09 23:53:13 2021 -0500
+++ b/pidgin/Makefile.am Sun Apr 11 03:27:46 2021 -0500
@@ -162,6 +162,8 @@
$(LIBXML_LIBS) \
$(GTK_LIBS) \
$(GIO_UNIX_LIBS) \
+ $(X11_LIBS) \
+ $(LIBM) \
$(top_builddir)/libpurple/libpurple.la
AM_CPPFLAGS = \