Skip to content

Commit 6db40ef

Browse files
authored
Static libraries (#4)
1 parent ef6c4cf commit 6db40ef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ jobs:
8383

8484
- name: Install dependencies (Linux)
8585
if: startsWith(matrix.platform, 'ubuntu-')
86-
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
86+
run: |
87+
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
88+
# Removing shared objects to force static linking.
89+
sudo find /usr/lib \( -name libpcap.so\* -o -name libmaxminddb.so\* \) -delete
8790
8891
- name: Install dependencies (macOS)
8992
if: startsWith(matrix.platform, 'macos-')
@@ -97,7 +100,8 @@ jobs:
97100
if: "!startsWith(matrix.platform, 'windows-')"
98101
run: |
99102
cd zeek-src
100-
./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
103+
[ $(uname) = Linux ] && linux_flags='-D ZLIB_USE_STATIC_LIBS=TRUE'
104+
./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
101105
make -j${{ steps.cpu-cores.outputs.count }}
102106
sudo make install
103107
sudo strip /usr/local/zeek/bin/zeek

0 commit comments

Comments
 (0)