diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-06-08 23:45:36 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-06-09 20:32:40 +0200 |
commit | 205643a3454fee967bd7fbc8e1668f6d18a83ce3 (patch) | |
tree | a77b4d3db1542a31a1bd960d814c2c46ee99a43e /package/libpcap/libpcap-remove-libnl-include-path.patch | |
parent | 69e3d032ed0da9f246d39c5e04b63102004810f2 (diff) | |
download | buildroot-205643a3454fee967bd7fbc8e1668f6d18a83ce3.tar.gz buildroot-205643a3454fee967bd7fbc8e1668f6d18a83ce3.zip |
libpcap: fix build failure related to libnl3
When libpcap detects that libnl3 is available, it hardcodes the fact
of using -I/usr/include/libnl3, which is completely wrong in
cross-compilation.
This commit fixes that, by removing this hardcoded include path, and
by passing an appropriate -I option from libpcap.mk.
The original issue has been reported upstream at
https://github.com/the-tcpdump-group/libpcap/issues/305.
Fixes:
http://autobuild.buildroot.net/results/b65/b6585bf2985a188e797e5a6b71a35c461421e3b4/build-end.log
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libpcap/libpcap-remove-libnl-include-path.patch')
-rw-r--r-- | package/libpcap/libpcap-remove-libnl-include-path.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/libpcap/libpcap-remove-libnl-include-path.patch b/package/libpcap/libpcap-remove-libnl-include-path.patch new file mode 100644 index 0000000000..7b7106b53d --- /dev/null +++ b/package/libpcap/libpcap-remove-libnl-include-path.patch @@ -0,0 +1,16 @@ +Remove hardcoded path to libnl3 include directory + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> + +Index: b/configure.in +=================================================================== +--- a/configure.in ++++ b/configure.in +@@ -445,7 +445,6 @@ + AC_DEFINE(HAVE_LIBNL_3_x,1,[if libnl exists and is version 3.x]) + AC_DEFINE(HAVE_LIBNL_NLE,1,[libnl has NLE_FAILURE]) + AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api]) +- V_INCLS="$V_INCLS -I/usr/include/libnl3" + have_any_nl="yes" + ]) + |