diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 954ff4c..ff50ef5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,7 +83,10 @@ jobs: - name: Install dependencies (Linux) if: startsWith(matrix.platform, 'ubuntu-') - run: sudo apt-get -y install ccache cmake make gcc g++ flex libfl-dev bison libpcap-dev libssl-dev python3 python3-dev python3-setuptools swig zlib1g-dev zip libmaxminddb-dev + run: | + sudo apt-get -y install ccache cmake make gcc g++ flex libfl-dev bison libpcap-dev libssl-dev python3 python3-dev python3-setuptools swig zlib1g-dev zip libmaxminddb-dev + # Removing shared objects to force static linking. + sudo find /usr/lib \( -name libpcap.so\* -o -name libmaxminddb.so\* \) -delete - name: Install dependencies (macOS) if: startsWith(matrix.platform, 'macos-') @@ -97,7 +100,8 @@ jobs: if: "!startsWith(matrix.platform, 'windows-')" run: | cd zeek-src - ./configure --binary-package --enable-static-broker --enable-static-binpac --disable-spicy --disable-af-packet --disable-zeekctl --disable-python --disable-broker-tests --disable-auxtools --disable-archiver --osx-min-version=12 + [ $(uname) = Linux ] && linux_flags='-D ZLIB_USE_STATIC_LIBS=TRUE' + ./configure --binary-package --enable-static-broker --enable-static-binpac --disable-spicy --disable-af-packet --disable-zeekctl --disable-python --disable-broker-tests --disable-auxtools --disable-archiver --osx-min-version=12 -D OPENSSL_USE_STATIC_LIBS=TRUE $linux_flags make -j${{ steps.cpu-cores.outputs.count }} sudo make install sudo strip /usr/local/zeek/bin/zeek