summaryrefslogtreecommitdiffstats
path: root/package/tcpreplay/tcpreplay.mk
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2016-03-29 21:24:15 +0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-29 20:26:28 +0200
commitae1e6320e29c88e2ff5bd1198074c01cd40b816a (patch)
tree38f4f61ebafda64ba455c6cd0c9ef3afb8e549d3 /package/tcpreplay/tcpreplay.mk
parentf1894ec95728806e09405d26663e0ea371afaeab (diff)
downloadbuildroot-ae1e6320e29c88e2ff5bd1198074c01cd40b816a.tar.gz
buildroot-ae1e6320e29c88e2ff5bd1198074c01cd40b816a.zip
tcpreplay: fix static link with libpcap
The tcpreplay configure script does not look for static libpcap.a unless dynamic link is disabled. Fixes: http://autobuild.buildroot.net/results/e7e/e7e7744ac0a22eded05f237e40b0cdaeec4ce005/ http://autobuild.buildroot.net/results/3e3/3e33a67965eb37471ec3303ee26f6a66a82383a2/ http://autobuild.buildroot.net/results/fff/fff0d6a814b765699cba803ececbc00d77e5d8fc/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/tcpreplay/tcpreplay.mk')
-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 b32810f78d..0723c02d28 100644
--- a/package/tcpreplay/tcpreplay.mk
+++ b/package/tcpreplay/tcpreplay.mk
@@ -20,6 +20,10 @@ TCPREPLAY_LIBS = $(STAGING_DIR)/usr/bin/pcap-config --static --libs
TCPREPLAY_CONF_ENV += ac_cv_search_pcap_close="`$(TCPREPLAY_LIBS)`" \
LIBS="`$(TCPREPLAY_LIBS)`"
+ifeq ($(BR2_STATIC_LIBS),y)
+TCPREPLAY_CONF_OPTS += --enable-dynamic-link=no
+endif
+
ifeq ($(BR2_PACKAGE_TCPDUMP),y)
TCPREPLAY_CONF_ENV += ac_cv_path_tcpdump_path=/usr/sbin/tcpdump
else
OpenPOWER on IntegriCloud