]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix typo, and request additional libraries for *static* linking.
authorGuy Harris <[email protected]>
Thu, 30 Nov 2017 20:59:54 +0000 (12:59 -0800)
committerGuy Harris <[email protected]>
Thu, 30 Nov 2017 20:59:54 +0000 (12:59 -0800)
aclocal.m4
configure

index 85a4b21071265b2efce60feb1e60d6bab9913a52..6af76f103884b4c4b1a543e111c63d1641518e10 100644 (file)
@@ -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
             #
index 2512d791a3639fdbfc12630e2e60fe36a749b2d6..3b1568ec585f980a363ca684be83be974a2ee6fa 100755 (executable)
--- a/configure
+++ b/configure
@@ -5547,12 +5547,13 @@ fi
             # 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.
             #
             V_INCLS="-I$local_pcap_dir $V_INCLS"
-            additional_libs=`"$PCAP_CONFIG" --additinoal-libs`
+            additional_libs=`"$PCAP_CONFIG" --static --additional-libs`
             libpcap="$libpcap $additional_libs"
         else
             #