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
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
11 [1] https://lists.berlios.de/pipermail/gpsd-dev/2011-August/009451.html
13 Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
16 1 file changed, 1 insertion(+), 1 deletion(-)
18 diff --git a/gpsd/Makefile b/gpsd/Makefile
19 index 9b21652..92e690f 100644
22 @@ -49,7 +49,7 @@ ifeq ($(origin LIBGPS_CFLAGS) $(origin LIBGPS_LDLIBS), undefined undefined)
23 $(error No $(LIBGPS_NAME) development libraries found!)
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
29 CFLAGS += $(LIBGPS_CFLAGS)
30 LDLIBS += $(LIBGPS_LDLIBS)