[devhelp/gnome-3-6] libdevhelp: explicitly link with libm for sqrt() in dh-window.c



commit 454ecd52b9be9bbe0f396f4765dd308a4730ecfe
Author: Alexandre Rostovtsev <tetromino gentoo org>
Date:   Fri Nov 23 02:33:53 2012 -0500

    libdevhelp: explicitly link with libm for sqrt() in dh-window.c
    
    Prevents linking failure when using GNU gold.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688919

 configure.ac    |    3 +++
 src/Makefile.am |    3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 28efae6..dfcd5f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,9 @@ else
 fi
 AM_CONDITIONAL(WITH_WEBKIT2, test "x$with_webkit2" != xno)
 
+AC_CHECK_LIBM
+AC_SUBST(LIBM)
+
 PKG_CHECK_MODULES(DEVHELP, [
   gthread-2.0 >= 2.10.0
   gtk+-3.0 >= 3.4
diff --git a/src/Makefile.am b/src/Makefile.am
index e6b1716..419c31c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -107,7 +107,8 @@ libdevhelp_3_la_CFLAGS =				\
 
 libdevhelp_3_la_LIBADD =				\
 	$(LIBDEVHELP_LIBS)				\
-	$(ZLIB_LIBS)
+	$(ZLIB_LIBS)					\
+	$(LIBM)
 
 libdevhelp_3_la_LDFLAGS =				\
 	-no-undefined					\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]