summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-11-30 12:59:54 -0800
committerGuy Harris <guy@alum.mit.edu>2017-11-30 12:59:54 -0800
commitbfdad0f58f2ab4c158c85e23c9a5a8274b85c26b (patch)
tree20523153b79119f6630eb23a03c651c820e702dd /aclocal.m4
parent6779fd3ba74cf27a152b4052cf02cb3bf20c2147 (diff)
downloadtcpdump-bfdad0f58f2ab4c158c85e23c9a5a8274b85c26b.tar.gz
Fix typo, and request additional libraries for *static* linking.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 85a4b210..6af76f10 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -606,12 +606,13 @@ AC_DEFUN(AC_LBL_LIBPCAP,
# we add the source directory for the local libpcap, so
# we pick up its header files.
#
- # We do, however, want its additional libraries, because
- # it makes calls to routines in those libraries, so we'll
- # need to link with them.
+ # We do, however, want its additional libraries, as required
+ # when linking statically, because it makes calls to
+ # routines in those libraries, so we'll need to link with
+ # them, because we'll be linking statically with it.
#
$2="-I$local_pcap_dir $$2"
- additional_libs=`"$PCAP_CONFIG" --additinoal-libs`
+ additional_libs=`"$PCAP_CONFIG" --static --additional-libs`
libpcap="$libpcap $additional_libs"
else
#