newlib now has a threads.h header file, which conflicts with Apple's Threads.h on case-insensitive file systems. Suppress it.

It doesn't work anyway, as we would need to supply at least a platform-specific machine/_threads.h for it.
This commit is contained in:
Wolfgang Thaller 2017-10-07 21:38:09 +02:00
parent 3eff6ff36f
commit f65c69f656

View File

@ -383,6 +383,10 @@ sh "$SRC/prepare-rincludes.sh" "$RINCLUDES" "toolchain/RIncludes"
# and link files from toolchain/CIncludes # and link files from toolchain/CIncludes
function linkheaders() function linkheaders()
{ {
# incompatible with Universal Interfaces on case-insensitive file systems
# (and does not currently work anyways)
rm -f "$1"/threads.h
# the following command doesn't work on older Mac OS X versions. # the following command doesn't work on older Mac OS X versions.
# allow it to fail quietly, at worst we leave some dangling symlinks around # allow it to fail quietly, at worst we leave some dangling symlinks around
# in the rare situation that headers are removed from the input directory # in the rare situation that headers are removed from the input directory