From 243a9b47faa08ab4967c3722a2765079079f8364 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Fri, 19 Jul 2019 23:00:18 +0800 Subject: [PATCH] scripts: enable ipv6 support for lws --- .travis.yml | 6 +++--- scripts/cross-build.sh | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b8d334e..d690a79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,12 +18,12 @@ install: | pushd /tmp curl -sLo- https://github.com/warmcat/libwebsockets/archive/v$LIBWEBSOCKETS_VERSION.tar.gz | tar xz cd libwebsockets-$LIBWEBSOCKETS_VERSION - cmake $CMAKE_OPTIONS . + cmake -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON -DCMAKE_BUILD_TYPE=RELEASE . make && sudo make install popd script: | mkdir build && cd build - cmake $CMAKE_OPTIONS .. + cmake -DCMAKE_BUILD_TYPE=RELEASE .. make && sudo make install ttyd -v jobs: @@ -39,4 +39,4 @@ jobs: file: bin/* skip_cleanup: true on: - tags: true \ No newline at end of file + tags: true diff --git a/scripts/cross-build.sh b/scripts/cross-build.sh index 2e34529..a5c22db 100755 --- a/scripts/cross-build.sh +++ b/scripts/cross-build.sh @@ -72,6 +72,7 @@ build_libwebsockets() { -DLWS_STATIC_PIC=ON \ -DLWS_WITH_SHARED=OFF \ -DLWS_UNIX_SOCK=ON \ + -DLWS_IPV6=ON \ -DCMAKE_TOOLCHAIN_FILE=../../cross-$TARGET.cmake \ -DCMAKE_INSTALL_PREFIX=$STAGE_DIR \ .. -- 2.43.4