mirror of
https://github.com/nmap/nmap.git
synced 2026-01-28 17:19:05 +00:00
o Stopped linking against libnl when not necessary (when linking
dynamically with libpcap). Patch by Kevin Locke.
This commit is contained in:
@@ -417,6 +417,9 @@ if test $have_libpcap != yes; then
|
||||
PCAP_CLEAN="pcap_clean"
|
||||
PCAP_DIST_CLEAN="pcap_dist_clean"
|
||||
AC_DEFINE(PCAP_INCLUDED)
|
||||
|
||||
# libpcap can require libnl
|
||||
AC_SEARCH_LIBS(nl_handle_alloc, nl)
|
||||
else
|
||||
AC_DEFINE(HAVE_LIBPCAP)
|
||||
LIBPCAP_LIBS="-lpcap"
|
||||
@@ -579,9 +582,6 @@ AC_HELP_STRING([--without-liblua], [Compile without lua (this will exclude all o
|
||||
# OpenSSL and NSE C modules can require dlopen
|
||||
AC_SEARCH_LIBS(dlopen, dl)
|
||||
|
||||
# libpcap can require libnl
|
||||
AC_SEARCH_LIBS(nl_handle_alloc, nl)
|
||||
|
||||
# They don't want lua
|
||||
if test "$no_lua" = "yes"; then
|
||||
CPPFLAGS="-DNOLUA $CPPFLAGS"
|
||||
|
||||
Reference in New Issue
Block a user