[Buildroot] [PATCH 05/15] package/pkg-generic.mk: Perform .la files fixup in per-package HOST_DIR

Herve Codina herve.codina at bootlin.com
Thu Jun 24 16:20:52 UTC 2021


Hi,

On Tue, 22 Jun 2021 12:12:02 +0200
"Yann E. MORIN" <yann.morin.1998 at free.fr> wrote:

> >  # $2: staging directory of the package
> >  ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),y)
> >  define fixup-libtool-files
> > -	$(Q)find $(2)/usr/lib* -name "*.la" | xargs --no-run-if-empty \
> > +	$(Q)find $(2) \( -path '$(2)/lib*' -o -path '$(2)/usr/lib*' \) \
> > +		-name "*.la" | xargs --no-run-if-empty \
> >  		$(SED) "s:$(PER_PACKAGE_DIR)/[^/]\+/:$(PER_PACKAGE_DIR)/$(1)/:g"  
> 
> While at it, can you switch over to using find's -print0 and xarg's -0 ?

Yes, changed.

I will also change PATCH 10 of this series. Same construction in fixup-python-files
same sanction.

Regards,
Hervé

-- 
Hervé Codina, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list