Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/ser2net: disable threads for toolchains without threads support
@ 2016-11-06 13:15 Romain Naour
  2016-11-06 14:13 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Romain Naour @ 2016-11-06 13:15 UTC (permalink / raw)
  To: buildroot

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

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

Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 package/ser2net/ser2net.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/ser2net/ser2net.mk b/package/ser2net/ser2net.mk
index 01aee95..b0a7f5b 100644
--- a/package/ser2net/ser2net.mk
+++ b/package/ser2net/ser2net.mk
@@ -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
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] package/ser2net: disable threads for toolchains without threads support
  2016-11-06 13:15 [Buildroot] [PATCH] package/ser2net: disable threads for toolchains without threads support Romain Naour
@ 2016-11-06 14:13 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-11-06 14:13 UTC (permalink / raw)
  To: buildroot

Hello,

On Sun,  6 Nov 2016 14:15:23 +0100, Romain Naour wrote:

> +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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-06 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-06 13:15 [Buildroot] [PATCH] package/ser2net: disable threads for toolchains without threads support Romain Naour
2016-11-06 14:13 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox