[gnome-bluetooth] build: Explicitely link to libm
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] build: Explicitely link to libm
- Date: Wed, 26 Mar 2014 23:52:46 +0000 (UTC)
commit 34f21eea0ae2b7bace570eb2d49cf868699e9213
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 25 14:25:04 2014 +0100
build: Explicitely link to libm
For the "pow()" call.
https://bugzilla.gnome.org/show_bug.cgi?id=726693
configure.ac | 2 ++
gnome-bluetooth-1.0.pc.in | 2 +-
lib/Makefile.am | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 31e47f7..f7a74ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,6 +51,8 @@ GLIB_GSETTINGS
AC_PATH_PROG([XMLLINT],[xmllint])
+AC_CHECK_LIB([m],[sin])
+
dnl gtk-doc checks
GTK_DOC_CHECK(1.9)
diff --git a/gnome-bluetooth-1.0.pc.in b/gnome-bluetooth-1.0.pc.in
index 4350bc8..46d7dc1 100644
--- a/gnome-bluetooth-1.0.pc.in
+++ b/gnome-bluetooth-1.0.pc.in
@@ -8,5 +8,5 @@ Description: Widgets for Bluetooth device selection
Version: @VERSION@
Requires: gtk+-3.0 gio-2.0
Requires.private: libudev
-Libs: -L${libdir} -lgnome-bluetooth
+Libs: -L${libdir} -lgnome-bluetooth -lm
Cflags: -I${includedir}/gnome-bluetooth
diff --git a/lib/Makefile.am b/lib/Makefile.am
index c558d0c..c110c27 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -48,7 +48,7 @@ libgnome_bluetooth_la_SOURCES = \
$(libgnome_bluetooth_private_headers) \
$(libgnome_bluetooth_c_sources)
-libgnome_bluetooth_la_LIBADD = $(LIBGNOMEBT_LIBS)
+libgnome_bluetooth_la_LIBADD = $(LIBGNOMEBT_LIBS) $(LIBS)
libgnome_bluetooth_la_LDFLAGS = \
-version-info $(GNOMEBT_LT_VERSION) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]