[nautilus] Fix libm linking



commit 2d40fbadb053bc7ad0d988050e58a81bfc3ea08b
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Tue Mar 9 15:06:04 2010 +0100

    Fix libm linking
    
    Nautilus was underlinked, found by recently introduced change in Fedora:
    https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
    
    /usr/bin/ld: ../libnautilus-private/.libs/libnautilus-private.a(eel-canvas.o): undefined reference to symbol 'floor@@GLIBC_2.0'
    /usr/bin/ld: note: 'floor@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
    /lib/libm.so.6: could not read symbols: Invalid operation

 configure.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 00acf0c..b8a230e 100644
--- a/configure.in
+++ b/configure.in
@@ -56,6 +56,8 @@ AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
 
+AC_CHECK_LIB(m, floor)
+
 PKG_CHECK_MODULES(ALL, [
 	glib-2.0		>= glib_minver
 	gnome-desktop-2.0	>= gnome_desktop_minver



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]