Go to file
PeroSar 02735ff5e0
continuous-integration/drone Build is failing Details
debug
2023-10-02 18:37:10 +05:30
bin bin: add emerald-alignfix 2022-05-13 16:31:41 +05:30
patches/gcc update gcc to 13.2.0 and binutils to 2.41 2023-09-24 12:24:48 +05:30
.drone.yml debug 2023-10-02 18:37:10 +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 back to tildegit 2023-09-24 10:09:04 +05:30
binutils-is-llvm.sh Test build 2 2022-06-04 14:08:26 +05:30
common.sh debug 2023-10-02 18:37:10 +05:30
emerald-binutils.sh debug 2023-10-02 18:37:10 +05:30
emerald-gcc.sh debug 2023-10-02 18:37:10 +05:30
emerald-get-relver.sh emerald-get-relver: Fix for BusyBox grep 2022-06-04 11:10:26 +05:30
emerald-post-gcc-build.sh emerald-post-gcc-build: Fix for BusyBox grep 2022-06-04 10:35:26 +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