Allow cross-compilation of Android version on Mac

When compiling for Android (COMP=ndk) on macOS, the build fails because the
NDK's LLVM toolchain does not recognize the macOS-specific flags
-mdynamic-no-pic and -mmacosx-version-min.

This PR wraps these flags with ifneq ($(COMP),ndk) condition to skip them
during Android cross-compilation.

Please squash and merge this PR.

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

No functional change
This commit is contained in:
MFW
2026-07-03 20:26:34 +02:00
committed by Joost VandeVondele
parent 3e1e8e38a4
commit 46428b9346
2 changed files with 21 additions and 13 deletions
+1
View File
@@ -186,6 +186,7 @@ Moez Jellouli (MJZ1977)
Mohammed Li (tthsqe12)
Mukhammedali Beriktassuly (Berektassuly)
Muzhen J (XInTheDark)
Mafanwei
Nathan Rugg (nmrugg)
Nguyen Pham (nguyenpham)
Nicklas Persson (NicklasPersson)