aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/subsurface/subsurface/libm.patch
blob: 79956089dfe45d6d0bdbe2228a2282b2f579b60f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| /media/build1/poky/build1/tmp/sysroots/x86_64-linux/usr/libexec/i586-poky-linux/gcc/i586-poky-linux/4.9.0/ld: divelist.o: undefined reference to symbol 'pow@@GLIBC_2.0'
| /media/build1/poky/build1/tmp/sysroots/qemux86/lib/libm.so.6: error adding symbols: DSO missing from command line
| collect2: error: ld returned 1 exit status

Index: git/Makefile
===================================================================
--- git.orig/Makefile	2014-07-17 20:59:03.152489041 +0000
+++ git/Makefile	2014-07-17 20:59:19.020489473 +0000
@@ -50,7 +50,7 @@
 LIBDIVECOMPUTERCFLAGS = -I$(LIBDIVECOMPUTERINCLUDES)
 LIBDIVECOMPUTER = $(LIBDIVECOMPUTERARCHIVE) $(LIBUSB)
 
-LIBS = $(LIBXML2) $(LIBGTK) $(LIBDIVECOMPUTER) -lpthread
+LIBS = $(LIBXML2) $(LIBGTK) $(LIBDIVECOMPUTER) -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 \