From 1cf43ad4724736a580ffb54e521e6b472c104aca Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Tue, 11 Feb 2020 22:03:42 +0800 Subject: [PATCH] libwebsockets: 3.2.2 --- .github/workflows/backend.yml | 2 +- scripts/cross-build.sh | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 91bb5dd..75c2fe5 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-16.04 strategy: matrix: - lws-version: [3.2.0, 3.1.0, 2.4.2] + lws-version: [3.2.2, 3.1.0, 2.4.2] steps: - name: Install packages run: | diff --git a/scripts/cross-build.sh b/scripts/cross-build.sh index f2443a2..597d58d 100755 --- a/scripts/cross-build.sh +++ b/scripts/cross-build.sh @@ -12,16 +12,16 @@ BUILD_ROOT="${BUILD_ROOT:-/opt/build}" ZLIB_VERSION="${ZLIB_VERSION:-1.2.11}" JSON_C_VERSION="${JSON_C_VERSION:-0.13.1}" -OPENSSL_VERSION="${OPENSSL_VERSION:-1.0.2t}" -LIBUV_VERSION="${LIBUV_VERSION:-1.34.0}" -LIBWEBSOCKETS_VERSION="${LIBWEBSOCKETS_VERSION:-3.2.0}" +OPENSSL_VERSION="${OPENSSL_VERSION:-1.0.2u}" +LIBUV_VERSION="${LIBUV_VERSION:-1.34.2}" +LIBWEBSOCKETS_VERSION="${LIBWEBSOCKETS_VERSION:-3.2.2}" build_zlib() { echo "=== Building zlib-${ZLIB_VERSION} (${TARGET})..." curl -sLo- https://zlib.net/zlib-${ZLIB_VERSION}.tar.gz | tar xz -C ${BUILD_DIR} pushd ${BUILD_DIR}/zlib-${ZLIB_VERSION} env CHOST=${TARGET} ./configure --static --archs="-fPIC" --prefix=${STAGE_DIR} - make install + make -j4 install popd } @@ -30,7 +30,7 @@ build_json-c() { curl -sLo- https://s3.amazonaws.com/json-c_releases/releases/json-c-${JSON_C_VERSION}.tar.gz | tar xz -C ${BUILD_DIR} pushd ${BUILD_DIR}/json-c-${JSON_C_VERSION} env CFLAGS=-fPIC ./configure --disable-shared --enable-static --prefix=${STAGE_DIR} --host=${TARGET} - make install + make -j4 install popd } @@ -40,18 +40,18 @@ build_openssl() { pushd ${BUILD_DIR}/openssl-${OPENSSL_VERSION} env CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib C_INCLUDE_PATH=${STAGE_DIR}/include \ ./Configure dist -fPIC --prefix=/ --install_prefix=${STAGE_DIR} - make > /dev/null + make -j4 > /dev/null make install_sw popd } build_libuv() { echo "=== Building libuv-${LIBUV_VERSION} (${TARGET})..." - curl -sLo- https://dist.libuv.org/dist/v1.34.0/libuv-v${LIBUV_VERSION}.tar.gz | tar xz -C ${BUILD_DIR} + curl -sLo- https://dist.libuv.org/dist/v${LIBUV_VERSION}/libuv-v${LIBUV_VERSION}.tar.gz | tar xz -C ${BUILD_DIR} pushd ${BUILD_DIR}/libuv-v${LIBUV_VERSION} ./autogen.sh env CFLAGS=-fPIC ./configure --disable-shared --enable-static --prefix=${STAGE_DIR} --host=${TARGET} - make install + make -j4 install popd } -- 2.43.4