Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static libraries #4

Merged
merged 22 commits into from
Jan 7, 2024
Merged
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ 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
sudo find /usr/lib \( -name libpcap.so\* -o -name libmaxminddb.so\* \) -delete
philrz marked this conversation as resolved.
Show resolved Hide resolved
echo "extra_config=-D ZLIB_USE_STATIC_LIBS=ON" >> $GITHUB_OUTPUT
philrz marked this conversation as resolved.
Show resolved Hide resolved
id: on_linux

- name: Install dependencies (macOS)
if: startsWith(matrix.platform, 'macos-')
Expand All @@ -97,7 +101,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
./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.on_linux.outputs.extra_config }}
philrz marked this conversation as resolved.
Show resolved Hide resolved
make -j${{ steps.cpu-cores.outputs.count }}
sudo make install
sudo strip /usr/local/zeek/bin/zeek
Expand Down