package/gcc: define _REENTRANT for RISC-V when -pthread is passed
authorMark Corbin <mark.corbin@embecosm.com>
Thu, 22 Nov 2018 13:31:12 +0000 (13:31 +0000)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 24 Nov 2018 10:21:19 +0000 (11:21 +0100)
commit2355ebb61376312b73cf33e72473519363c440fa
tree9fe0ded5efcffd72aa340a55a350b8c366f09f96
parent0021a2a49f68a1405a8ba132dc9466c771ffc46e
package/gcc: define _REENTRANT for RISC-V when -pthread is passed

The detection of pthread support fails on RISC-V unless _REENTRANT is
defined. This commit backports a patch that is already in upstream gcc
8.x to gcc 7.x to define _REENTRANT when -pthread is passed.

This will replace a number of package-specific fixes that have been
introduced to define _REENTRANT.

Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
[Thomas: tweak commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gcc/7.3.0/1001-gcc-define-_REENTRANT-for-RISC-V-when-pthread-is-pas.patch [new file with mode: 0644]