kumquat-buildroot/package/reaver/reaver.mk
Guillaume W. Bres 559416ffe2 reaver: fix static link build issue
When libpcap itself is linked against other libraries, reaver fails to
build as it doesn't link with libpcap dependencies. This patch fixes
that by using the pcap-config program.

Fixes:

  http://autobuild.buildroot.net/results/899fd633288d5cd5aa221413cded857e4f743194/

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-04-25 22:21:46 +02:00

24 lines
767 B
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

################################################################################
#
# reaver
#
################################################################################
# Older repos for this project will not cross-compile easily
# while this one works right away
REAVER_VERSION = 9bae55bd30b6d46b42da3a09dc23c8b0f9341996
REAVER_SITE = $(call github,t6x,reaver-wps-fork-t6x,$(REAVER_VERSION))
REAVER_LICENSE = GPL-2.0+
REAVER_LICENSE_FILES = docs/LICENSE
REAVER_SUBDIR = src
REAVER_DEPENDENCIES = libpcap
ifeq ($(BR2_STATIC_LIBS),y)
REAVER_CONF_ENV += \
LIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`" \
LDFLAGS="$(TARGET_LDFLAGS) `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`"
endif
$(eval $(autotools-package))