Skip to content

Commit

Permalink
Use the .so removal trick for libz
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Jan 6, 2024
1 parent 272294a commit 1c8e3e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ jobs:
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
sudo rm /usr/lib/x86_64-linux-gnu/libpcap*.so* /usr/lib/x86_64-linux-gnu/libmaxmind*.so*
echo "extra_linux_config=-D ZLIB_USE_STATIC_LIBS=ON" >> $GITHUB_OUTPUT
id: linux
sudo find /usr/lib \( -name libpcap.so\* -o -name libmaxminddb.so\* -o -name libz.so\* \) -delete
- name: Install dependencies (macOS)
if: startsWith(matrix.platform, 'macos-')
Expand All @@ -102,7 +100,7 @@ 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 -D OPENSSL_USE_STATIC_LIBS=TRUE ${{ steps.linux.outputs.extra_linux_config }}
./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
make -j${{ steps.cpu-cores.outputs.count }}
sudo make install
sudo strip /usr/local/zeek/bin/zeek
Expand Down

0 comments on commit 1c8e3e1

Please sign in to comment.