Go to file
PeroSar 3ed698bc14
Test build with musl libc
Signed-off-by: PeroSar <perosar1111@gmail.com>
2022-06-04 10:10:58 +05:30
bin bin: add emerald-alignfix 2022-05-13 16:31:41 +05:30
patches/gcc patches/gcc/12.1.0: remove useless patches 2022-05-10 23:02:32 +05:30
.drone.yml Test build with musl libc 2022-06-04 10:10:58 +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 Prepare for env git migration 2022-06-03 23:00:30 +05:30
common.sh Test build with musl libc 2022-06-04 10:10:58 +05:30
emerald-binutils.sh Test build with musl libc 2022-06-04 10:10:58 +05:30
emerald-gcc.sh Test build with musl libc 2022-06-04 10:10:58 +05:30
emerald-get-relver.sh drone: Add CI config 2022-05-02 16:08:15 +05:30
emerald-post-gcc-build.sh Test build with musl libc 2022-06-04 10:10:58 +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