Skip to contentSkip to conversation

package/ser2net: disable threads for toolchains without threads support

PATCH New Romain Naour 2 participants 2 messages Nov 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ser2net: disable threads for toolchains without threads support

ser2net configure script provide an option to disable threads support, use it.

Fixes:
http://autobuild.buildroot.net/results/6bc/6bc0f99917c2069a1614f4cfcaa98af1b21762e4

---
 package/ser2net/ser2net.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/ser2net/ser2net.mk +6 -0
index 01aee95..b0a7f5b 100644
@@ -9,6 +9,12 @@ SER2NET_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
 SER2NET_LICENSE = GPLv2+
 SER2NET_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+SER2NET_CONF_OPTS += --with-pthreads=yes
+else
+SER2NET_CONF_OPTS += --with-pthreads=no
+endif
+
 define SER2NET_INSTALL_INIT_SYSV
 	$(INSTALL) -D -m 755 package/ser2net/S50ser2net \
 		$(TARGET_DIR)/etc/init.d/S50ser2net
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 package/ser2net: disable threads for toolchains without threads support

Hello,

package/ser2net/ser2net.mk SER2NET_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net · line 16

Quoted 5 lines · Romain Naour
package/ser2net/ser2net.mk +5 -0
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+SER2NET_CONF_OPTS += --with-pthreads=yes
+else
+SER2NET_CONF_OPTS += --with-pthreads=no
+endif

We normally use --with-pthreads / --without-pthreads, so I've updated your patch accordingly and applied to master. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com