Skip to content

Commit

Permalink
Static libraries (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz authored Jan 7, 2024
1 parent ef6c4cf commit 6db40ef
Showing 1 changed file with 6 additions and 2 deletions.
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,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-')
Expand All @@ -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
Expand Down

0 comments on commit 6db40ef

Please sign in to comment.