[Buildroot] [PATCH v1 1/1] package/pkg-meson.mk: handle possibly non existing compilers

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Aug 16 21:24:05 UTC 2022


On Tue, 16 Aug 2022 22:54:04 +0200
Arnout Vandecappelle <arnout at mind.be> wrote:

> > +# To avoid populating the cross-file with non existing compilers,
> > +# we tie them to /bin/false
> > +ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
> > +PKG_MESON_TARGET_CXX = $(TARGET_CXX)
> > +else
> > +PKG_MESON_TARGET_CXX = /bin/false
> > +endif
> > +
> > +ifeq ($(BR2_TOOLCHAIN_HAS_FORTRAN),y)
> > +PKG_MESON_TARGET_FC = $(TARGET_FC)
> > +else
> > +PKG_MESON_TARGET_FC = /bin/false
> > +endif  
> 
>   Perhaps we should do this in package/Makefile.in instead? I.e. define 
> TARGET_CXX itself as false.
> 
>   This does have rather heavy implications, but I *think* it should be fine... 
> And anyway, the autobuilders will tell us :-)

See the discussion on the RFC of this patch, where I proposed exactly
this, and Yann gave a recollection of historical details that showed
that no, it's not a good idea to do it in package/Makefile.in,
unfortunately.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com



More information about the buildroot mailing list