559416ffe2
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>
24 lines
767 B
Makefile
24 lines
767 B
Makefile
################################################################################
|
||
#
|
||
# 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))
|