[Buildroot] [PATCH 1/1] package/suricata: fix static build with pcap

Fabrice Fontaine fontaine.fabrice at gmail.com
Sun May 19 21:43:26 UTC 2019


Dear Vadim,

Le dim. 19 mai 2019 à 22:09, Vadim Kochan <vadim4j at gmail.com> a écrit :
>
> Build of suricata fails with BR2_STATIC_LIBS=y because pcap
> requires libnl which can't be found, so use pkg-config to obtain
> libpcap dependencies.
Thanks for your patch however I already sent a patch's serie one month
ago that also fixed this pcap issue:
https://patchwork.ozlabs.org/project/buildroot/list/?series=104482.
I think it's time to merge it.
>
> Fixes:
>         http://autobuild.buildroot.net/results/b5fdf31db6897a9612a0badc7c4bd3e54f031308/
>
> Signed-off-by: Vadim Kochan <vadim4j at gmail.com>
> ---
>  package/suricata/suricata.mk | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/package/suricata/suricata.mk b/package/suricata/suricata.mk
> index e5884cdfe4..503d76e6a8 100644
> --- a/package/suricata/suricata.mk
> +++ b/package/suricata/suricata.mk
> @@ -123,4 +123,6 @@ define SURICATA_INSTALL_INIT_SYSTEMD
>                 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/suricata.service
>  endef
>
> +SURICATA_CONF_OPTS += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libpcap`"
> +
>  $(eval $(autotools-package))
> --
> 2.21.0
>
Best Regards,

Fabrice


More information about the buildroot mailing list