From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baruch Siach Subject: [PATCH iproute2 2/2] arpd: remove pthread dependency Date: Tue, 1 May 2018 15:43:08 +0300 Message-ID: <4a4f4d491f89bdd580fdd7a901a3300cb5e9789e.1525178588.git.baruch@tkos.co.il> References: <1918c6139ac3ee9affe8e62817f30b110ab235c7.1525178588.git.baruch@tkos.co.il> Cc: netdev@vger.kernel.org, Baruch Siach To: Stephen Hemminger Return-path: Received: from guitar.tcltek.co.il ([192.115.133.116]:59692 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755182AbeEAMo4 (ORCPT ); Tue, 1 May 2018 08:44:56 -0400 In-Reply-To: <1918c6139ac3ee9affe8e62817f30b110ab235c7.1525178588.git.baruch@tkos.co.il> Sender: netdev-owner@vger.kernel.org List-ID: Explicit link with pthread is not needed when linking dynamically. Even static link with recent libdb does not pull in the code that uses pthread. Finally, the configure check introduced in commit a25df4887d7 (configure: Check for Berkeley DB for arpd compilation) does not add -lpthread to its link command. This change allows arpd build with toolchains that do not provide threads support. Signed-off-by: Baruch Siach --- misc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/Makefile b/misc/Makefile index 34ef6b21b4ed..b2dd6b26e2dc 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -25,7 +25,7 @@ rtacct: rtacct.c $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o rtacct rtacct.c $(LDLIBS) -lm arpd: arpd.c - $(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LDLIBS) -ldb -lpthread + $(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LDLIBS) -ldb ssfilter.c: ssfilter.y $(QUIET_YACC)bison ssfilter.y -o ssfilter.c -- 2.17.0