mirror of
https://github.com/Relintai/osxcross.git
synced 2025-03-13 11:48:52 +01:00
Fix building GCC with 10.15 SDK
This commit is contained in:
parent
6d98ef2979
commit
f4b0948abd
9
build.sh
9
build.sh
@ -260,6 +260,15 @@ if [ $(osxcross-cmp ${SDK_VERSION/u/} ">=" 10.7) -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ -f "usr/include/Availability.h" ]; then
|
||||||
|
if [ $(osxcross-cmp $SDK_VERSION "==" 10.15) -eq 1 ]; then
|
||||||
|
# 10.15 comes with a broken Availability.h header file
|
||||||
|
# which breaks building GCC
|
||||||
|
set +e
|
||||||
|
cat $PATCH_DIR/gcc_availability.h >> usr/include/Availability.h
|
||||||
|
set -e
|
||||||
|
fi
|
||||||
|
fi
|
||||||
popd &>/dev/null
|
popd &>/dev/null
|
||||||
echo ""
|
echo ""
|
||||||
if [ $I386_SUPPORTED -eq 1 ]; then
|
if [ $I386_SUPPORTED -eq 1 ]; then
|
||||||
|
10
patches/gcc_availability.h
Normal file
10
patches/gcc_availability.h
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#ifndef __AVAILABILITY_HACK__
|
||||||
|
#define __AVAILABILITY_HACK__
|
||||||
|
|
||||||
|
#ifndef __OSX_AVAILABLE_STARTING
|
||||||
|
#define __OSX_AVAILABLE_STARTING(...)
|
||||||
|
#define __OSX_AVAILABLE_BUT_DEPRECATED(...)
|
||||||
|
#define __OSX_AVAILABLE_BUT_DEPRECATED_MSG(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user