]> git.sesse.net Git - stockfish/commit
Fix Makefile for Android NDK cross-compile
authorpschneider1968 <36973164+pschneider1968@users.noreply.github.com>
Fri, 21 Jan 2022 13:11:53 +0000 (14:11 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Tue, 25 Jan 2022 06:27:23 +0000 (07:27 +0100)
commitbddd38c45e1f1457e1435cd066036e98f54d7397
tree9257a4d4a26befa4a832ae4fc4ddadcacdf8893e
parent9083050be692b2d9a4f281e78b967755e00cfc39
Fix Makefile for Android NDK cross-compile

For cross-compiling to Android on windows, the Makefile needs some tweaks.

Tested with Android NDK 23.1.7779620 and 21.4.7075529, using
Windows 10 with clean MSYS2 environment (i.e. no MINGW/GCC/Clang
toolchain in PATH) and Fedora 35, with build target:
build ARCH=armv8 COMP=ndk

The resulting binary runs fine inside Droidfish on my Samsung
Galaxy Note20 Ultra and Samsung Galaxy Tab S7+

Other builds tested to exclude regressions: MINGW64/Clang64 build
on Windows; MINGW64 cross build, native Clang and GCC builds on Fedora.

wiki docs https://github.com/glinscott/fishtest/wiki/Cross-compiling-Stockfish-for-Android-on-Windows-and-Linux

closes https://github.com/official-stockfish/Stockfish/pull/3901

No functional change
src/Makefile