[Buildroot] [PATCH 1/1] mtd: fix build on riscv

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Nov 21 08:39:41 UTC 2018


Hello,

On Wed, 21 Nov 2018 00:34:30 +0100, Arnout Vandecappelle wrote:

> > +# gcc on riscv doesn't define _REENTRANT when -pthread is passed while
> > +# it should. Compensate this deficiency here otherwise mtd configure
> > +# script doesn't find that thread support is enabled.
> > +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS):$(BR2_riscv),y:y)
> > +MTD_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_REENTRANT"  
> 
>  Patching gcc sounds more and more attractive...

Yes, definitely. We should do that.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list