diff --git a/base/libpcap/libpcap.conf b/base/libpcap/libpcap.conf index 1cf154a1e..6b9de95ed 100644 --- a/base/libpcap/libpcap.conf +++ b/base/libpcap/libpcap.conf @@ -14,6 +14,13 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +# build and install shared libraries if the target supports it +if [ "$SDECFG_STATIC" != '1' ] ; then + var_append makeopt ' ' "shared" + var_append makeinstopt ' ' "install-shared" + hook_add postmake 6 "cd $root/$libdir; ln -svf libpcap.so{.$ver,}" +fi + # enable IPv6 support by default var_append confopt ' ' '--enable-ipv6'