From patchwork Tue Oct 22 23:27:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Wunderlich X-Patchwork-Id: 3619 Return-Path: Received: from m25s01.vlinux.de (packetmixer.de [83.151.30.3]) by open-mesh.org (Postfix) with ESMTPS id 83468602288 for ; Wed, 23 Oct 2013 01:27:56 +0200 (CEST) Received: from kero.packetmixer.de (p4FFE5627.dip0.t-ipconnect.de [79.254.86.39]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by m25s01.vlinux.de (Postfix) with ESMTPSA id 0F1E75086F; Wed, 23 Oct 2013 01:21:34 +0200 (CEST) From: Simon Wunderlich To: b.a.t.m.a.n@lists.open-mesh.org Date: Wed, 23 Oct 2013 01:27:43 +0200 Message-Id: <1382484463-32339-1-git-send-email-sw@simonwunderlich.de> X-Mailer: git-send-email 1.7.10.4 Subject: [B.A.T.M.A.N.] [PATCH] alfred-gpsd: add -lm to linker flags for libgps X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2013 23:27:56 -0000 Appearently applications using libgps must link -lm themselves. A patch was submitted [1] to change this unusual behaviour upstream, but was never applied. Therefore link to -lm to alfred-gpsd too as this should not hurt anyway. [1] https://lists.berlios.de/pipermail/gpsd-dev/2011-August/009451.html Signed-off-by: Simon Wunderlich Acked-by: Andrew Lunn --- gpsd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsd/Makefile b/gpsd/Makefile index 9b21652..92e690f 100644 --- a/gpsd/Makefile +++ b/gpsd/Makefile @@ -49,7 +49,7 @@ ifeq ($(origin LIBGPS_CFLAGS) $(origin LIBGPS_LDLIBS), undefined undefined) $(error No $(LIBGPS_NAME) development libraries found!) endif LIBGPS_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBGPS_NAME)) - LIBGPS_LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBGPS_NAME)) + LIBGPS_LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBGPS_NAME)) -lm endif CFLAGS += $(LIBGPS_CFLAGS) LDLIBS += $(LIBGPS_LDLIBS)