[Buildroot] [PATCH 1/1] reaver: add missing dependency on non static lib.
Arnout Vandecappelle
arnout at mind.be
Wed Apr 18 21:55:14 UTC 2018
On 18-04-18 18:43, Guillaume W. Bres wrote:
> Fixes
>
> http://autobuild.buildroot.net/results/519b4347f496c043ddecdf15f57efb0b3addee42
> http://autobuild.buildroot.net/results/c3daad76473a704e379634e3b87d51468a353f41
>
> lpcap is not found when BR2_STATIC_LIBS=y
Instead of just blindly disabling static, it's worthwhile to try to fix it
instead. You can use the pattern that is used in e.g. arp-scan:
ifeq ($(BR2_STATIC_LIBS),y)
REAVER_CONF_OPTS += \
LDFLAGS="$(TARGET_LDFLAGS) `$(STAGING_DIR)/usr/bin/pcap-config --static
--additional-libs`"
endif
(untested).
Regards,
Arnout
>
> Signed-off-by: Guillaume W. Bres <guillaume.bressaix at gmail.com>
> ---
> package/reaver/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/package/reaver/Config.in b/package/reaver/Config.in
> index 0fd8ab7..3e73d0e 100644
> --- a/package/reaver/Config.in
> +++ b/package/reaver/Config.in
> @@ -1,5 +1,6 @@
> config BR2_PACKAGE_REAVER
> bool "reaver"
> + depends on !BR2_STATIC_LIBS
> select BR2_PACKAGE_LIBPCAP
> help
> Reaver is a tool to audit networks against brute WPS pins
> @@ -7,3 +8,6 @@ config BR2_PACKAGE_REAVER
>
> https://code.google.com/archive/p/reaver-wps/wikis/README.wiki
> https://github.com/t6x/reaver-wps-fork-t6x
> +
> +comment "reaver needs a toolchain w/ dynamic library"
> + depends on BR2_STATIC_LIBS
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list