[Buildroot] [PATCH v2,1/1] package/bustle: fix static build

Arnout Vandecappelle arnout at mind.be
Tue Mar 2 20:49:40 UTC 2021



On 04/01/2021 07:54, Fabrice Fontaine wrote:
> Commit 436cb9308a50b1007a42eb490405a3155307a771 wrongly removed --static
> from pcap-config call
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/b5d8d8d8452342373c2446613ba3051c20a97c03
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

 Applied to master, thanks.

 Regards,
 Arnout

> ---
> Changes v1 -> v2 (after review of Yann E. Morin):
>  - Only add --static if BR2_STATIC_LIBS is set
> 
>  package/bustle/bustle.mk | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/package/bustle/bustle.mk b/package/bustle/bustle.mk
> index c6c3a72a91..b92d1a3ea9 100644
> --- a/package/bustle/bustle.mk
> +++ b/package/bustle/bustle.mk
> @@ -9,7 +9,12 @@ BUSTLE_SITE = https://hackage.haskell.org/package/bustle-$(BUSTLE_VERSION)
>  BUSTLE_LICENSE = LGPL-2.1+
>  BUSTLE_LICENSE_FILES = LICENSE
>  BUSTLE_DEPENDENCIES = libglib2 libpcap host-pkgconf
> -BUSTLE_MAKE_OPTS = PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config
> +
> +ifeq ($(BR2_STATIC_LIBS),y)
> +BUSTLE_MAKE_OPTS += PCAP_CONFIG="$(STAGING_DIR)/usr/bin/pcap-config --static"
> +else
> +BUSTLE_MAKE_OPTS += PCAP_CONFIG="$(STAGING_DIR)/usr/bin/pcap-config"
> +endif
>  
>  define BUSTLE_BUILD_CMDS
>  	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
> 


More information about the buildroot mailing list