tetromino    14/06/03 01:29:40

  Added:                gnome-bluetooth-3.12.0-gold.patch
  Log:
  Fix build failure with ld.gold
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
CF0ADD61)

Revision  Changes    Path
1.1                  
net-wireless/gnome-bluetooth/files/gnome-bluetooth-3.12.0-gold.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnome-bluetooth/files/gnome-bluetooth-3.12.0-gold.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/gnome-bluetooth/files/gnome-bluetooth-3.12.0-gold.patch?rev=1.1&content-type=text/plain

Index: gnome-bluetooth-3.12.0-gold.patch
===================================================================
>From 34f21eea0ae2b7bace570eb2d49cf868699e9213 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <[email protected]>
Date: Tue, 25 Mar 2014 14:25:04 +0100
Subject: [PATCH] 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)             \
-- 
2.0.0





Reply via email to