]> The Tcpdump Group git mirrors - tcpdump/commit
CI: Use libpcap.a on MATRIX_BUILD_LIBPCAP=yes. [skip appveyor]
authorDenis Ovsienko <[email protected]>
Thu, 18 Mar 2021 02:14:37 +0000 (02:14 +0000)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 28 Mar 2021 18:12:13 +0000 (20:12 +0200)
commit89a5871f2cd3542e74a19d4869b588f48e265d39
tree11e21b80ce90859565cd490a44214981223e0d7f
parent3973a016a5df84a7dc0f9ea2866d9a02ce1ca926
CI: Use libpcap.a on MATRIX_BUILD_LIBPCAP=yes. [skip appveyor]

The only way to pass tests on OpenBSD is to link with the upstream
libpcap using ../libpcap/libpcap.a (hence not using CMake) because
-lpcap always results in linking with OpenBSD /usr/lib/libpcap.so
regardless of the libpcap.a and libpcap.so that build.sh installs under
/tmp/local/.

Work around by not cleaning in ../libpcap on MATRIX_BUILD_LIBPCAP=yes,
so Autoconf can pick the static library up. On MATRIX_BUILD_LIBPCAP=no
do the cleaning so it cannot.

(cherry picked from commit 40733327128628b8b0db270c4220beaaad1d6e02)
build_matrix.sh