diff mbox

iproute2: fix build without threads

Message ID ac8ac9d4494067e153caae00d4340d9db7fb91d9.1398680427.git.baruch@tkos.co.il
State Accepted
Commit 0a0947ce96bda22e81f60544c3ae9f37ed7fab7d
Headers show

Commit Message

Baruch Siach April 28, 2014, 10:20 a.m. UTC
arpd link command lists -pthread explicitly. Disable arpd when threads are not
supported.

Fixes:
http://autobuild.buildroot.net/results/88e/88eac71e674f773439b953956af3ded71465cf9e/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 package/iproute2/iproute2.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Peter Korsgaard April 28, 2014, 12:08 p.m. UTC | #1
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:

 > arpd link command lists -pthread explicitly. Disable arpd when threads are not
 > supported.

 > Fixes:
 > http://autobuild.buildroot.net/results/88e/88eac71e674f773439b953956af3ded71465cf9e/

 > Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Committed, thanks.
diff mbox

Patch

diff --git a/package/iproute2/iproute2.mk b/package/iproute2/iproute2.mk
index e51c33b926ed..841deb2625c9 100644
--- a/package/iproute2/iproute2.mk
+++ b/package/iproute2/iproute2.mk
@@ -32,8 +32,8 @@  define IPROUTE2_WITH_IPTABLES
 endef
 endif
 
-# arpd needs BerkeleyDB
-ifeq ($(BR2_PACKAGE_BERKELEYDB_COMPAT185),y)
+# arpd needs BerkeleyDB and links against pthread
+ifeq ($(BR2_PACKAGE_BERKELEYDB_COMPAT185)$(BR2_TOOLCHAIN_HAS_THREADS),yy)
 IPROUTE2_DEPENDENCIES += berkeleydb
 else
 define IPROUTE2_DISABLE_ARPD