Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v3 1/1] reaver: fix build errors with static lib
@ 2018-04-22 15:51 Guillaume W. Bres
  2018-04-25 20:32 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Guillaume W. Bres @ 2018-04-22 15:51 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
---
v2: build now passes even when BR2_STATIC_LIB=y,
LIBS+=pcap-config caused "./configure" tu pass,
LDFLAGS+=pcap-config fixed problems with "make",
they're both needed.

v3: edited commit to something more releavant

 package/reaver/reaver.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/reaver/reaver.mk b/package/reaver/reaver.mk
index 90d1727..8dfec32 100644
--- a/package/reaver/reaver.mk
+++ b/package/reaver/reaver.mk
@@ -14,4 +14,9 @@ REAVER_LICENSE_FILES = docs/LICENSE
 REAVER_SUBDIR = src
 REAVER_DEPENDENCIES = libpcap
 
+ifeq ($(BR2_STATIC_LIBS),y)
+REAVER_CONF_OPTS += LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`"
+REAVER_CONF_OPTS += LDFLAGS="`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`"
+endif
+
 $(eval $(autotools-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-26  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-22 15:51 [Buildroot] [PATCH v3 1/1] reaver: fix build errors with static lib Guillaume W. Bres
2018-04-25 20:32 ` Thomas Petazzoni
2018-04-26  8:11   ` Guillaume William Bres

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox