]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Link with libm for 'pow()'
authorCristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>
Sun, 15 Jan 2012 23:40:50 +0000 (00:40 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 16 Jan 2012 00:19:18 +0000 (16:19 -0800)
Solves suddenly revealed linking error:

  divelist.c:400: error: undefined reference to 'pow'

Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Makefile

index 7c885648415ac956fb0a99fcd194258c6c1a9e5c..8a5096a16b07f07486ed8c7592966dad26c2776c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -111,7 +111,7 @@ ifneq ($(strip $(LIBXSLT)),)
        endif
 endif
 
-LIBS = $(LIBXML2) $(LIBXSLT) $(LIBGTK) $(LIBGCONF2) $(LIBDIVECOMPUTER) $(EXTRALIBS) -lpthread
+LIBS = $(LIBXML2) $(LIBXSLT) $(LIBGTK) $(LIBGCONF2) $(LIBDIVECOMPUTER) $(EXTRALIBS) -lpthread -lm
 
 OBJS = main.o dive.o profile.o info.o equipment.o divelist.o \
        parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o \