summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-06-27 09:42:33 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-27 09:42:33 +0200
commita795e2a491c7a99530c79fc3f23a39b6a85ebce5 (patch)
tree5559df45f8e3bc04f14abd71a5e7c87bf7b2897d
parenta2ddfdb11a2c28c511a2a4d5bf0060217c93d140 (diff)
downloadbuildroot-novena-a795e2a491c7a99530c79fc3f23a39b6a85ebce5.tar.gz
buildroot-novena-a795e2a491c7a99530c79fc3f23a39b6a85ebce5.zip
tcpreplay: fix linking when libpcap is built with canusb support
Fixes http://autobuild.buildroot.net/results/f3cee3df639a8ecf0f7f81ca33efee4e040c76ff Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/tcpreplay/tcpreplay.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/tcpreplay/tcpreplay.mk b/package/tcpreplay/tcpreplay.mk
index 72abade5f..4a7226604 100644
--- a/package/tcpreplay/tcpreplay.mk
+++ b/package/tcpreplay/tcpreplay.mk
@@ -11,5 +11,9 @@ TCPREPLAY_CONF_OPT = --with-libpcap=$(STAGING_DIR)/usr
TCPREPLAY_AUTORECONF = YES
TCPREPLAY_DEPENDENCIES = libpcap
+# libpcap may depend on symbols in libusb as well
+TCPREPLAY_LIBS = -lpcap $(if $(BR2_PACKAGE_LIBUSB),-lusb-1.0)
+TCPREPLAY_CONF_ENV += ac_cv_search_pcap_close='$(TCPREPLAY_LIBS)'
+
$(eval $(call AUTOTARGETS))