Trying to build Embla for android.
The problem is, it keeps becoming a dynamic binary, even with the static build-flag:
Code: Select all
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := Embla
LOCAL_SRC_FILES := ../IO_perft.cpp ../Rng.cpp ../IO_EPD.cpp ../Board.cpp ../ChessPiece.cpp ../Exception.cpp ../IO.cpp ../IO_stderr.cpp ../IO_Console.cpp ../Scene.cpp ../Brain.cpp ../Debug.cpp ../Move.cpp ../Tpt.cpp ../IO_AutoPlay.cpp ../IO_UCI.cpp ../MoveSort.cpp ../Semaphore.cpp ../config.cpp ../ALG_position.cpp ../MoveList.cpp ../error.cpp ../db.cpp ../Utils.cpp ../Book.cpp ../DBBook.cpp ../DBBookWDL.cpp ../DBBookEval.cpp ../History.cpp ../PV.cpp ../BookPolyglot.cpp ../DetectBookFile.cpp ../DBBookEvalSqlite3.cpp ../DBBookLearn.cpp ../Tune.cpp ../IO_Xboard.cpp ../Ptt.cpp ../Main.cpp
LOCAL_CPPFLAGS := -std=gnu++14 -Wall -fPIE -DVERSION=\"2.0.7\" -DNAME_EXTRA=\"\" -fexceptions
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -fPIE -pie -static
LOCAL_LDFLAGS := -static
include $(BUILD_EXECUTABLE)
Results in:
Code: Select all
folkert@belle:~/Projects … .9.1_2205/branches/Android/jni Android(1) 6s ‡ file ../libs/armeabi/Embla
../libs/armeabi/Embla: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /usr/lib/libc.so.1, BuildID[sha1]=1292a6bce7808ecddf110f5aa7a43d154248f472, stripped