fix build on case-sensitive file systems

This commit is contained in:
Wolfgang Thaller 2019-08-25 16:19:58 +02:00
parent 14570ffa1f
commit 57d99dfbed

View File

@ -139,10 +139,11 @@ function locateAndCheckInterfacesAndLibraries()
# and link files from $PREFIX/CIncludes
function linkHeaders()
{
# incompatible with Universal Interfaces on case-insensitive file systems
rm -f "$1"/threads.h # does not currently work anyways
rm -f "$1"/memory.h # non-standard aliasof string.h
rm -f "$1"/strings.h # traditional bsd string functions
# On case-insensitive file systems, there will be some conflicts with
# newlib. For now, universal interfaces get the right of way.
rm -f Threads.h # thread.h: does not currently work anyways
rm -f Memory.h # memory.h: non-standard aliasof string.h
rm -f Strings.h # strings.h: traditional bsd string functions
(cd "$1" && find "../../CIncludes" -name '*.h' -exec ln -s {} . \;)
}