Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libwebsockets: add option to enable/disable ipv6 support
@ 2015-09-23 13:16 Andreas Wetzel
  2015-09-23 14:08 ` Vicente Olivert Riera
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Andreas Wetzel @ 2015-09-23 13:16 UTC (permalink / raw)
  To: buildroot

Added configuration option BR2_PACKAGE_LIBWEBSOCKETS_IPV6 that
adds -DLWS_IPV6=ON/OFF to LIBWEBSOCKETS_CONF_OPTS.

Signed-off-by: Andreas Wetzel <andreas.wetzel@nanotronic.ch>
---
 package/libwebsockets/Config.in        | 7 +++++++
 package/libwebsockets/libwebsockets.mk | 8 +++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/package/libwebsockets/Config.in b/package/libwebsockets/Config.in
index 2b350bf..e3c7eea 100644
--- a/package/libwebsockets/Config.in
+++ b/package/libwebsockets/Config.in
@@ -8,3 +8,10 @@ config BR2_PACKAGE_LIBWEBSOCKETS
 	  in both directions.
 
 	  http://libwebsockets.org/
+
+if BR2_PACKAGE_LIBWEBSOCKETS
+
+config BR2_PACKAGE_LIBWEBSOCKETS_IPV6
+    bool "Compile with support for ipv6"
+
+endif
diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk
index 2f83748..f4a3db2 100644
--- a/package/libwebsockets/libwebsockets.mk
+++ b/package/libwebsockets/libwebsockets.mk
@@ -11,7 +11,7 @@ LIBWEBSOCKETS_LICENSE = LGPLv2.1 with exceptions
 LIBWEBSOCKETS_LICENSE_FILES = LICENSE
 LIBWEBSOCKETS_DEPENDENCIES = zlib
 LIBWEBSOCKETS_INSTALL_STAGING = YES
-LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON -DLWS_IPV6=ON
+LIBWEBSOCKETS_CONF_OPTS = -DLWS_WITHOUT_TESTAPPS=ON
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl
@@ -20,4 +20,10 @@ else
 LIBWEBSOCKETS_CONF_OPTS += -DLWS_WITH_SSL=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS_IPV6),y)
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_IPV6=ON
+else
+LIBWEBSOCKETS_CONF_OPTS += -DLWS_IPV6=OFF
+endif
+
 $(eval $(cmake-package))
-- 
2.1.4

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

end of thread, other threads:[~2015-10-10 17:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-23 13:16 [Buildroot] [PATCH 1/1] libwebsockets: add option to enable/disable ipv6 support Andreas Wetzel
2015-09-23 14:08 ` Vicente Olivert Riera
2015-09-23 14:43   ` Wetzel Andreas
2015-09-23 14:51     ` Vicente Olivert Riera
2015-09-23 15:12       ` Wetzel Andreas
2015-09-23 15:42         ` Vicente Olivert Riera
2015-09-23 21:02 ` Thomas Petazzoni
2015-09-25 11:12   ` Wetzel Andreas
2015-09-25 12:06     ` Thomas Petazzoni
2015-09-25 12:27       ` Gustavo Zacarias
2015-09-25 12:33         ` Thomas Petazzoni
2015-10-03 18:57 ` Peter Korsgaard
2015-10-05  8:18   ` Wetzel Andreas
2015-10-10 17:24 ` Thomas Petazzoni

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