From 4f99dfcae2dd8e9a4b163ade623084888655ed46 Mon Sep 17 00:00:00 2001 From: Tobias Steinmann Date: Mon, 18 Dec 2023 15:07:14 +0100 Subject: [PATCH] Update Makefile for android x86-64 builds For developing an Android GUI it can be helpful to use the Emulator on Windows. Therefor an android_x86-64 library of Stockfish is needed. It would be nice to compile it "out-of-the-box". This change is originally suggested by Craftyawesome closes https://github.com/official-stockfish/Stockfish/pull/4927 No functional change --- AUTHORS | 1 + src/Makefile | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/AUTHORS b/AUTHORS index 28586eec..6f518ec2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -215,6 +215,7 @@ Thanar2 thaspel theo77186 Ting-Hsuan Huang (fffelix-huang) +Tobias Steinmann Tomasz Sobczyk (Sopel97) Tom Truscott Tom Vijlbrief (tomtor) diff --git a/src/Makefile b/src/Makefile index 761b4086..ac354c7b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -521,6 +521,14 @@ ifeq ($(COMP),ndk) STRIP=llvm-strip endif endif + ifeq ($(arch),x86_64) + CXX=x86_64-linux-android21-clang++ + ifneq ($(shell which x86_64-linux-android-strip 2>/dev/null),) + STRIP=x86_64-linux-android-strip + else + STRIP=llvm-strip + endif + endif LDFLAGS += -static-libstdc++ -pie -lm -latomic endif