Skip to contentSkip to conversation

iputils: fix build with disabled thread support

PATCH New Petr Vorel 2 participants 2 messages Aug 2, 2019

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 iputils: fix build with disabled thread support

Fixes:
http://autobuild.buildroot.net/results/10652b7bf6a606f0dd802916006c44abf3e5e059
http://autobuild.buildroot.net/results/9656af1aafbd2624fb75bf5fc1dfa13b6175c10b
http://autobuild.buildroot.net/results/2e170e149b293d40978e158d55dc0102315b9d86

---
 package/iputils/iputils.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/iputils/iputils.mk +5 -0
index cbcce89684..4a06581790 100644
@@ -49,6 +49,11 @@ IPUTILS_CONF_OPTS += -DUSE_CRYPTO=none
 IPUTILS_CONF_OPTS += -DBUILD_NINFOD=false
 endif
 
+# ninfod requires <pthread.h>
+ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+IPUTILS_CONF_OPTS += -DBUILD_NINFOD=false
+endif
+
 ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
 IPUTILS_CONF_OPTS += -DUSE_GETTEXT=true
 else
Signature · 1 line
2.22.0
#1 lore raw

PATCH 1/1 iputils: fix build with disabled thread support

Quoted 9 lines · On Fri, 2 Aug 2019 17:15:29 +0200 Petr Vorel <[email protected]> wrote:

Fixes:
http://autobuild.buildroot.net/results/10652b7bf6a606f0dd802916006c44abf3e5e059
http://autobuild.buildroot.net/results/9656af1aafbd2624fb75bf5fc1dfa13b6175c10b
http://autobuild.buildroot.net/results/2e170e149b293d40978e158d55dc0102315b9d86

---
 package/iputils/iputils.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com