tcpreplay: fix static link with libpcap
PATCH 1/1 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/
--- package/tcpreplay/tcpreplay.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/tcpreplay/tcpreplay.mk +4 -0
@@ -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
Signature · 1 line
2.8.0.rc3
Thomas Petazzoni
AppliedPATCH 1/1 tcpreplay: fix static link with libpcap
Hello,
Quoted 8 lines · Baruch Siach
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/
Quoted 4 lines
Signed-off-by Baruch Siach <[email protected]>--- package/tcpreplay/tcpreplay.mk | 4 ++++ 1 file changed, 4 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com