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

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Nov 11 21:01:01 UTC 2018


Hello,

+Mark Corbin in Cc.

On Sat, 10 Nov 2018 17:00:28 +0100, Fabrice Fontaine wrote:
> Define _REENTRANT like already done for ARC otherwise pthread detection
> will fail
> 
> Fixes:
>  - https://autobuild.buildroot.org/results/910dc7164312637bf4dcd89e4cb476ae198466c8
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
>  package/libmicrohttpd/libmicrohttpd.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Mark: could you report upstream to the RISC-V gcc developers that the
gcc port should define _REENTRANT when -pthread is passed ?

I.E, most platforms do some variations of:

#define SUBTARGET_CPP_SPEC  "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"

in their gcc/config/<ARCH>/linux.h file.

Thanks,

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



More information about the buildroot mailing list