Go to file
PeroSar 5ff9af7795
fix rust builds, add ldd
Signed-off-by: PeroSar <perosar1111@gmail.com>
2022-05-06 23:49:12 +05:30
bin fix rust builds, add ldd 2022-05-06 23:49:12 +05:30
patches/gcc/11.3.0 gcc: add 11.3.0 build script 2022-05-02 01:36:29 +05:30
.drone.yml fix rust builds, add ldd 2022-05-06 23:49:12 +05:30
.gitignore Add gitignore 2022-05-02 16:08:43 +05:30
LICENSE Add LICENSE 2022-05-02 00:22:28 +05:30
README.md Add README 2022-05-02 16:21:51 +05:30
common.sh binutils: add 2.38 build script 2022-05-02 01:30:59 +05:30
emerald-binutils.sh binutils: add 2.38 build script 2022-05-02 01:30:59 +05:30
emerald-gcc.sh gcc: add 11.3.0 build script 2022-05-02 01:36:29 +05:30
emerald-get-relver.sh drone: Add CI config 2022-05-02 16:08:15 +05:30
emerald-post-gcc-build.sh fix rust builds, add ldd 2022-05-06 23:49:12 +05:30
emerald-sysroot.sh gcc: add 11.3.0 build script 2022-05-02 01:36:29 +05:30

README.md

Emerald GCC

Drone CI

About

A toolchain to cross compile to Android. This outputs executables that link against Android's libc(bionic). This is a personal project.

Why

Androids GCC was deprecated in favor of LLVM Clang and removed from Android in January 2020. Some projects still require GCC for building.

How to use

$ tar -xJf file.tar.xz
  • Modify PATH
$ export PATH="$(pwd)/aarch64-linux-android-emerald/bin:$PATH"
  • Test
$ aarch64-linux-android-gcc --version
$ aarch64-linux-android-gcc test.c -o test
  • Run on Android (e.g. with Termux)

Target

Compiled executables should run properly on Android 8 and above.

Credits