From 5182da8cf0322d0bec62febb2a25a05116a8d762 Mon Sep 17 00:00:00 2001 From: Andreas Henriksson Date: Thu, 24 Sep 2015 10:04:39 +0200 Subject: Fix linking error for undefined reference to hypot https://bugzilla.gnome.org/show_bug.cgi?id=755489 --- configure.ac | 1 + libyelp/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index dba08f66..8869f9b1 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,7 @@ AM_PATH_GLIB_2_0 GLIB_GSETTINGS # Library dependecies +LT_LIB_M PKG_CHECK_MODULES(YELP, [ gio-2.0 >= 2.38.0 diff --git a/libyelp/Makefile.am b/libyelp/Makefile.am index 73efd41d..0959df91 100644 --- a/libyelp/Makefile.am +++ b/libyelp/Makefile.am @@ -18,7 +18,7 @@ libyelpcommon_la_CFLAGS = \ -DYELP_ICON_PATH=\"$(YELP_ICON_PATH)\" -libyelpcommon_la_LIBADD = $(YELP_LIBS) +libyelpcommon_la_LIBADD = $(YELP_LIBS) $(LIBM) libyelpcommon_la_LDFLAGS = \ -avoid-version \ -no-undefined -- cgit v1.2.1