mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-05-12 19:53:18 -04:00
toolchains: fix building on MacOS with clang 17
The zlib version used by GCC 4.9.4 and binutils 2.26.1
is incompatible with clang 17 from the latest Xcode
command line tools, resulting in fdopen being defined
as NULL.
Remove the define for MacOS, as in zlib 1.31:
4bd9a71f35
Change-Id: Ic7f3108dc4fcaca4ae9a571f2bdb9039be095f36
This commit is contained in:
parent
2ddcc95423
commit
b713f1190a
2 changed files with 28 additions and 1 deletions
|
|
@ -442,11 +442,15 @@ build() {
|
|||
|
||||
# For Apple targets only
|
||||
if [ "$system" == "Darwin" ] ; then
|
||||
patch="$patch apple_silicon.patch"
|
||||
patch="$patch apple_silicon.patch apple_silicon-zlib.patch"
|
||||
EXTRA_CXXFLAGS="-fbracket-depth=512"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$toolname" == "binutils" ] && [ "$system" == "Darwin" ]; then
|
||||
patch="$patch apple_silicon-zlib.patch"
|
||||
fi
|
||||
|
||||
# create build directory
|
||||
if test -d $builddir; then
|
||||
if test ! -w $builddir; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue