[gcalctool] Fix linking against libm



commit 2d198912c6fc5edb4aa4417465fee1eee6488f00
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Feb 10 16:43:10 2010 +0000

    Fix linking against libm
    
    Otherwise gcalctool isn't getting linked against libm:
    /usr/bin/ld: mp.o: undefined reference to symbol 'log@@GLIBC_2.2.5'
    /usr/bin/ld: note: 'log@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
    /lib64/libm.so.6: could not read symbols: Invalid operation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=609557

 configure.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 67f09b0..e6e64f9 100644
--- a/configure.in
+++ b/configure.in
@@ -34,6 +34,8 @@ PKG_CHECK_MODULES(GCALCCMD, [
     glib-2.0
 ])
 
+AC_CHECK_LIB(m, log)
+
 dnl ###########################################################################
 dnl Determine if a usable lex is available on this system
 dnl ###########################################################################



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