xref: /OK3568_Linux_fs/buildroot/package/olsr/0002-lib-pud-Makefile-fix-parallel-build.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 2f9311668dfdeee0453f5fceb27e8c95c065c4b6 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sat, 18 Jan 2020 17:29:56 +0100
4Subject: [PATCH] lib/pud/Makefile: fix parallel build
5
6nmealib is needed to build olsrd_pud plugin otherwise build fails on:
7
8[LD] olsrd_pud.so.3.0.0 (nmealib dynamically linked)
9/home/fabrice/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.8.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lnmea
10wireformat/lib/libOlsrdPudWireFormat.so: file not recognized: File truncated
11
12Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
13[Upstream status: https://github.com/OLSR/olsrd/pull/78]
14---
15 lib/pud/Makefile | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/lib/pud/Makefile b/lib/pud/Makefile
19index e2524421..28330d92 100644
20--- a/lib/pud/Makefile
21+++ b/lib/pud/Makefile
22@@ -108,7 +108,7 @@ endif
23
24 default_target: nmealib library $(PLUGIN_FULLNAME)
25
26-$(PLUGIN_FULLNAME): $(OBJS) version-script.txt
27+$(PLUGIN_FULLNAME): $(OBJS) version-script.txt nmealib
28 ifeq ($(PUD_NMEALIB_STATICALLY_LINKED),)
29 ifeq ($(VERBOSE),0)
30 	@echo "[LD] $@ (nmealib dynamically linked)"
31--
322.24.1
33
34