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
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.
12 This change allows arpd build with toolchains that do not provide
15 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
17 Upstream status: http://patchwork.ozlabs.org/patch/907031/
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 diff --git a/misc/Makefile b/misc/Makefile
23 index 34ef6b21b4ed..b2dd6b26e2dc 100644
26 @@ -25,7 +25,7 @@ rtacct: rtacct.c
27 $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o rtacct rtacct.c $(LDLIBS) -lm
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
33 ssfilter.c: ssfilter.y
34 $(QUIET_YACC)bison ssfilter.y -o ssfilter.c