batman-adv: upgrade package to latest release 2014.0.0
[lede-routing/.git] / alfred / patches / 0001-alfred-gpsd-add-lm-to-linker-flags-for-libgps.patch
1 From dbaaf2b294af120e42a0e95644640b128044a568 Mon Sep 17 00:00:00 2001
2 From: Simon Wunderlich <sw@simonwunderlich.de>
3 Date: Wed, 23 Oct 2013 01:17:36 +0200
4 Subject: [PATCH] alfred-gpsd: add -lm to linker flags for libgps
5
6 Appearently applications using libgps must link -lm themselves. A patch
7 was submitted [1] to change this unusual behaviour upstream, but was
8 never applied. Therefore link to -lm to alfred-gpsd too as this should
9 not hurt anyway.
10
11 [1] https://lists.berlios.de/pipermail/gpsd-dev/2011-August/009451.html
12
13 Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
14 ---
15  gpsd/Makefile |    2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/gpsd/Makefile b/gpsd/Makefile
19 index 9b21652..92e690f 100644
20 --- a/gpsd/Makefile
21 +++ b/gpsd/Makefile
22 @@ -49,7 +49,7 @@ ifeq ($(origin LIBGPS_CFLAGS) $(origin LIBGPS_LDLIBS), undefined undefined)
23      $(error No $(LIBGPS_NAME) development libraries found!)
24    endif
25    LIBGPS_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBGPS_NAME))
26 -  LIBGPS_LDLIBS +=  $(shell $(PKG_CONFIG) --libs $(LIBGPS_NAME))
27 +  LIBGPS_LDLIBS +=  $(shell $(PKG_CONFIG) --libs $(LIBGPS_NAME)) -lm
28  endif
29  CFLAGS += $(LIBGPS_CFLAGS)
30  LDLIBS += $(LIBGPS_LDLIBS)
31 -- 
32 1.7.10.4
33