* [Buildroot] [PATCH] tcpdump: fix static build
@ 2014-11-11 10:23 Baruch Siach
2014-11-11 21:41 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2014-11-11 10:23 UTC (permalink / raw)
To: buildroot
Commit 746116d1eb2e (tcpdump: use libpcap shared library) broke static build
of tcpdump, because its configure script doesn't take into account indirect
dependencies of libpcap. Add these dependencies to the LIBS configure
parameter.
Fixes:
http://autobuild.buildroot.net/results/fd231d34e4bb0306609b021e9e74eb862b7bd6bd/
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
package/tcpdump/tcpdump.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/tcpdump/tcpdump.mk b/package/tcpdump/tcpdump.mk
index e62dfaf44a89..1acf7d9e3065 100644
--- a/package/tcpdump/tcpdump.mk
+++ b/package/tcpdump/tcpdump.mk
@@ -16,6 +16,10 @@ TCPDUMP_DEPENDENCIES = zlib libpcap
# Patching aclocal.m4
TCPDUMP_AUTORECONF = YES
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+TCPDUMP_CONF_OPTS += LIBS="$(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)"
+endif
+
# make install installs an unneeded extra copy of the tcpdump binary
define TCPDUMP_REMOVE_DUPLICATED_BINARY
rm -f $(TARGET_DIR)/usr/sbin/tcpdump.$(TCPDUMP_VERSION)
--
2.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] tcpdump: fix static build
2014-11-11 10:23 [Buildroot] [PATCH] tcpdump: fix static build Baruch Siach
@ 2014-11-11 21:41 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2014-11-11 21:41 UTC (permalink / raw)
To: buildroot
>>>>> "Baruch" == Baruch Siach <baruch@tkos.co.il> writes:
> Commit 746116d1eb2e (tcpdump: use libpcap shared library) broke static build
> of tcpdump, because its configure script doesn't take into account indirect
> dependencies of libpcap. Add these dependencies to the LIBS configure
> parameter.
> Fixes:
> http://autobuild.buildroot.net/results/fd231d34e4bb0306609b021e9e74eb862b7bd6bd/
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-11 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-11 10:23 [Buildroot] [PATCH] tcpdump: fix static build Baruch Siach
2014-11-11 21:41 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox