Commit a795e2a4 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

tcpreplay: fix linking when libpcap is built with canusb support

parent a2ddfdb1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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))