Last active
September 3, 2024 07:37
-
-
Save VyacheslavMik/bc4d33e150bd7438234d007daaaaced5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git clone https://gitlab.com/embeddable-common-lisp/ecl.git | |
# ecl for android x86_64 | |
# build host ecl | |
./configure CFLAGS="-g -O2" LDFLAGS="-g -O2" --prefix=`pwd`/ecl-android-host --disable-c99complex && \ | |
make -j9 && \ | |
make install && \ | |
rm -r build && \ | |
export ECL_TO_RUN=`pwd`/ecl-android-host/bin/ecl | |
# make android toolchain | |
export NDK_PATH=/Users/vyacheslavmikushev/Library/Android/sdk/ndk-bundle/ && \ | |
export ANDROID_API=29 && \ | |
export TOOLCHAIN_PATH=`pwd`/android-toolchain && \ | |
${NDK_PATH}/build/tools/make_standalone_toolchain.py --arch x86_64 --install-dir ${TOOLCHAIN_PATH} --api ${ANDROID_API} && \ | |
export SYSROOT=${TOOLCHAIN_PATH}/sysroot && \ | |
export PATH=${TOOLCHAIN_PATH}/bin:$PATH | |
# build android x86_64 ecl | |
export LDFLAGS="--sysroot=${SYSROOT} -D__ANDROID_API__=${ANDROID_API} -fuse-ld=bfd" && \ | |
export CPPFLAGS="--sysroot=${SYSROOT} -D__ANDROID_API__=${ANDROID_API} -isystem ${SYSROOT}/usr/include/x86_64-linux-android" && \ | |
export CC=x86_64-linux-android-clang && \ | |
./configure --host=x86_64-linux-android --prefix=`pwd`/ecl-android --disable-c99complex --with-cross-config=`pwd`/src/util/android-arm64.cross_config && \ | |
make -j9 && \ | |
make install | |
# clean | |
export ECL_TO_RUN= && \ | |
\ | |
export NDK_PATH= && \ | |
export ANDROID_API= && \ | |
export TOOLCHAIN_PATH= && \ | |
export SYSROOT= && \ | |
\ | |
export LDFLAGS= && \ | |
export CPPFLAGS= && \ | |
export CC= && \ | |
\ | |
rm -r build && \ | |
rm -r ecl-android-host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export NDK_PATH=/home/vyacheslav/Android/Sdk/ndk/25.1.8937393/ && \ | |
export TOOLCHAIN_PATH=${NDK_PATH}/toolchains/llvm/prebuilt/linux-x86_64 && \ | |
export PATH=${TOOLCHAIN_PATH}/bin:$PATH && \ | |
export CC="aarch64-linux-android29-clang -D__BIONIC_VERSIONER=TRUE" && \ | |
./configure --host=aarch64-linux-android --prefix=`pwd`/ecl-android --disable-c99complex --with-cross-config=`pwd`/src/util/android-arm64.cross_config && \ | |
make -j9 && \ | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment