summaryrefslogtreecommitdiffstats
path: root/package/tcpdump/tcpdump.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-01-25 09:46:58 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2011-01-25 16:23:22 +0100
commit4c6a451ac9fab16abcda5834ed4a9b728091ab9e (patch)
treee9f8aecf11b2b2d9630c2ea7bcb0cf5cc5c696ea /package/tcpdump/tcpdump.mk
parent58d107ec3fb77b05bc16911a04ca7d42c46eb4d5 (diff)
downloadbuildroot-novena-4c6a451ac9fab16abcda5834ed4a9b728091ab9e.tar.gz
buildroot-novena-4c6a451ac9fab16abcda5834ed4a9b728091ab9e.zip
tcpdump, libpcap: simplify and fix ac_cv_linux_vers
For some reason, tcpdump and libpcap need to have some information about the kernel version being used. This information is passed using the ac_cv_linux_vers autoconf variable. However, the current value is determined using BR2_DEFAULT_KERNEL_HEADERS which is only defined when an internal Buildroot toolchain is used. So it would break with an external toolchain or the Crosstool-NG backend. According to Mike Frysinger at http://lists.busybox.net/pipermail/buildroot/2011-January/040861.html, this value is only used to determine if the kernel version is 0.x, 1.x or 2.x, so passing ac_cv_linux_vers=2 is sufficient since Buildroot only supports the 2.6 kernel anyway. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/tcpdump/tcpdump.mk')
-rw-r--r--package/tcpdump/tcpdump.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/tcpdump/tcpdump.mk b/package/tcpdump/tcpdump.mk
index 81228169b..720a29acf 100644
--- a/package/tcpdump/tcpdump.mk
+++ b/package/tcpdump/tcpdump.mk
@@ -9,7 +9,7 @@
TCPDUMP_VERSION:=4.1.1
TCPDUMP_SITE:=http://www.tcpdump.org/release
TCPDUMP_SOURCE:=tcpdump-$(TCPDUMP_VERSION).tar.gz
-TCPDUMP_CONF_ENV:=ac_cv_linux_vers=$(firstword $(subst .,$(space),$(firstword $(call qstrip,$(BR2_DEFAULT_KERNEL_HEADERS)))))
+TCPDUMP_CONF_ENV:=ac_cv_linux_vers=2
TCPDUMP_CONF_OPT:=--without-crypto \
$(if $(BR2_PACKAGE_TCPDUMP_SMB),--enable-smb,--disable-smb)
TCPDUMP_DEPENDENCIES:=zlib libpcap