summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/ser2net/ser2net.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/ser2net/ser2net.mk b/package/ser2net/ser2net.mk
index 01aee95d6d..c4dcaf31fa 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
+else
+SER2NET_CONF_OPTS += --without-pthreads
+endif
+
define SER2NET_INSTALL_INIT_SYSV
$(INSTALL) -D -m 755 package/ser2net/S50ser2net \
$(TARGET_DIR)/etc/init.d/S50ser2net
OpenPOWER on IntegriCloud