From 1c22c2b0b6a7232766a09a76e8f9fa1278a656b3 Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 20 Dec 2014 19:15:28 +0100 Subject: 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 Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=671602 --- configure.ac | 1 + libmateweather/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 \ -- cgit v1.2.1