]> prime8.dev >> repos - ttyd.git/commitdiff
scripts: enable ipv6 support for lws
authorShuanglei Tao <tsl0922@gmail.com>
Fri, 19 Jul 2019 15:00:18 +0000 (23:00 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Fri, 19 Jul 2019 15:00:18 +0000 (23:00 +0800)
.travis.yml
scripts/cross-build.sh

index b8d334e726044406439eafa8b8badd29b54ded27..d690a7960d1bbe962591be5ea2956abc0d826ac3 100644 (file)
@@ -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
index 2e34529b727a9a0e658cd4142f0cbac280fba676..a5c22db20c78d13df735be88920a90570a823b72 100755 (executable)
@@ -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 \
                    ..