]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/iproute2/0001-arpd-remove-pthread-dependency.patch
iproute2: bump to version 4.16.0
[coffee/buildroot.git] / package / iproute2 / 0001-arpd-remove-pthread-dependency.patch
1 From 4a4f4d491f89bdd580fdd7a901a3300cb5e9789e Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Tue, 1 May 2018 15:33:47 +0300
4 Subject: [PATCH] arpd: remove pthread dependency
5
6 Explicit link with pthread is not needed when linking dynamically. Even
7 static link with recent libdb does not pull in the code that uses
8 pthread. Finally, the configure check introduced in commit a25df4887d7
9 (configure: Check for Berkeley DB for arpd compilation) does not add
10 -lpthread to its link command.
11
12 This change allows arpd build with toolchains that do not provide
13 threads support.
14
15 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
16 ---
17 Upstream status: http://patchwork.ozlabs.org/patch/907031/
18
19  misc/Makefile | 2 +-
20  1 file changed, 1 insertion(+), 1 deletion(-)
21
22 diff --git a/misc/Makefile b/misc/Makefile
23 index 34ef6b21b4ed..b2dd6b26e2dc 100644
24 --- a/misc/Makefile
25 +++ b/misc/Makefile
26 @@ -25,7 +25,7 @@ rtacct: rtacct.c
27         $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o rtacct rtacct.c $(LDLIBS) -lm
28  
29  arpd: arpd.c
30 -       $(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LDLIBS) -ldb -lpthread
31 +       $(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LDLIBS) -ldb
32  
33  ssfilter.c: ssfilter.y
34         $(QUIET_YACC)bison ssfilter.y -o ssfilter.c
35 -- 
36 2.17.0
37