]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
arpd: remove pthread dependency
authorBaruch Siach <baruch@tkos.co.il>
Tue, 1 May 2018 12:43:08 +0000 (15:43 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 2 May 2018 02:29:03 +0000 (19:29 -0700)
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 <baruch@tkos.co.il>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
misc/Makefile

index 34ef6b21b4ed4299dda4a824263de9a3c687d70b..b2dd6b26e2dc53b9648122c1ca483e0752382826 100644 (file)
@@ -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