[glade] build: Add dependency on libm for floor() and ceil()



commit 7f4a5f85350c17f842b07c3fa6ef189f03e59e99
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Tue Dec 23 18:28:18 2014 +0000

    build: Add dependency on libm for floor() and ceil()
    
    libgladeui depends on libm.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741923

 configure.ac           |    2 ++
 data/gladeui-2.0.pc.in |    1 +
 gladeui/Makefile.am    |    2 +-
 3 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 902f8d6..fe66af4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -156,6 +156,8 @@ PKG_CHECK_MODULES([GMODULE_EXPORT],[
   gmodule-export-2.0
 ])
 
+LT_LIB_M
+
 dnl ================================================================
 dnl Check for the unix print widgets in gtk+
 dnl ================================================================
diff --git a/data/gladeui-2.0.pc.in b/data/gladeui-2.0.pc.in
index 786cbb9..8d07f9d 100644
--- a/data/gladeui-2.0.pc.in
+++ b/data/gladeui-2.0.pc.in
@@ -15,4 +15,5 @@ URL: http://glade.gnome.org
 Version: @PACKAGE_VERSION@
 Requires: gtk+-3.0 >= 2.91.2 libxml-2.0 >= 2.4.0
 Libs: -L${libdir} -lgladeui-2
+Libs.private: -lm
 Cflags: -I${includedir}
diff --git a/gladeui/Makefile.am b/gladeui/Makefile.am
index c63b6a3..77af09c 100644
--- a/gladeui/Makefile.am
+++ b/gladeui/Makefile.am
@@ -145,7 +145,7 @@ libgladeui_2_la_CFLAGS =    \
        $(AM_CFLAGS)
 
 libgladeui_2_la_LDFLAGS = -version-info $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS)
-libgladeui_2_la_LIBADD = $(GTK_LIBS) $(GTK_MAC_LIBS)
+libgladeui_2_la_LIBADD = $(GTK_LIBS) $(GTK_MAC_LIBS) $(LIBM)
 
 libgladeuiincludedir=$(includedir)/libgladeui-2.0/gladeui
 libgladeuiinclude_HEADERS = \


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