[libgweather] linking with libm explicity
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather] linking with libm explicity
- Date: Thu, 8 Mar 2012 18:14:34 +0000 (UTC)
commit d8e7b7ba7b1c8fc9820eb8b346d2f52be8c74b2f
Author: Dominique Leuenberger <dominique-gnomezilla leuenberger net>
Date: Thu Mar 8 18:12:03 2012 +0000
linking with libm explicity
While building with linker flags --no-copy-dt-needed-entries (default
binutils), the linking fails, as libm is not specified.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=671602
configure.ac | 1 +
libgweather/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 693a0b0..09d6ae6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,7 @@ LIBXML_REQUIRED=2.6.0
LT_PREREQ([2.2.6])
LT_INIT([dlopen win32-dll disable-static])
+LT_LIB_M
IT_PROG_INTLTOOL([0.40.6])
PKG_PROG_PKG_CONFIG([0.19])
diff --git a/libgweather/Makefile.am b/libgweather/Makefile.am
index 9ffc28a..111b395 100644
--- a/libgweather/Makefile.am
+++ b/libgweather/Makefile.am
@@ -72,7 +72,7 @@ test_locations_LDADD = libgweather-3.la $(GTK_LIBS)
test_sun_moon_SOURCES = test_sun_moon.c
test_sun_moon_CPPFLAGS = $(AM_CPPFLAGS) $(LIBSOUP_CFLAGS)
-test_sun_moon_LDADD = libgweather-3.la $(GTK_LIBS)
+test_sun_moon_LDADD = libgweather-3.la $(GTK_LIBS) $(LIBM)
gweather-enum-types.h: $(gweather_new_headers)
$(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) --template gweather-enum-types.h.tmpl \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]