You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
PeroSar 3ed698bc14
Test build with musl libc
8 months ago
bin bin: add emerald-alignfix 9 months ago
patches/gcc patches/gcc/12.1.0: remove useless patches 9 months ago
.drone.yml Test build with musl libc 8 months ago
.gitignore Add gitignore 9 months ago
LICENSE Add LICENSE 9 months ago
README.md Prepare for env git migration 8 months ago
common.sh Test build with musl libc 8 months ago
emerald-binutils.sh Test build with musl libc 8 months ago
emerald-gcc.sh Test build with musl libc 8 months ago
emerald-get-relver.sh drone: Add CI config 9 months ago
emerald-post-gcc-build.sh Test build with musl libc 8 months ago
emerald-sysroot.sh gcc: add 11.3.0 build script 9 months ago

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