summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-20 19:15:28 +0100
committerinfirit <[email protected]>2015-08-25 10:49:43 +0200
commit1c22c2b0b6a7232766a09a76e8f9fa1278a656b3 (patch)
tree132d3def2d2546a96bf036ee208ca6d89dee44d6
parent18efcc4269e1d5a364a66a3fe1c8a511b14862ee (diff)
downloadlibmateweather-1c22c2b0b6a7232766a09a76e8f9fa1278a656b3.tar.bz2
libmateweather-1c22c2b0b6a7232766a09a76e8f9fa1278a656b3.tar.xz
Linking with libm explicity
While building with linker flags --no-copy-dt-needed-entries (default binutils), the linking fails, as libm is not specified. Taken from libgweather commit: d8e7b7ba7b1c8fc9820eb8b346d2f52be8c74b2f From: Dominique Leuenberger <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=671602
-rw-r--r--configure.ac1
-rw-r--r--libmateweather/Makefile.am2
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 583a7cc..44979bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,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])
diff --git a/libmateweather/Makefile.am b/libmateweather/Makefile.am
index 5bfab60..b626bcf 100644
--- a/libmateweather/Makefile.am
+++ b/libmateweather/Makefile.am
@@ -72,7 +72,7 @@ test_locations_LDADD = libmateweather.la $(GTK_LIBS)
test_sun_moon_SOURCES = test_sun_moon.c
test_sun_moon_CPPFLAGS = $(AM_CPPFLAGS) $(LIBSOUP_CFLAGS)
-test_sun_moon_LDADD = libmateweather.la $(GTK_LIBS)
+test_sun_moon_LDADD = libmateweather.la $(GTK_LIBS) $(LIBM)
mateweather-enum-types.h: $(mateweather_new_headers)
$(AM_V_GEN)( cd $(srcdir) && $(GLIB_MKENUMS) --template mateweather-enum-types.h.tmpl \