Go to file
PeroSar 15255af004
bin: add emerald-alignfix
Fixes static executables to be able to run on device

Signed-off-by: PeroSar <perosar1111@gmail.com>
2022-05-13 16:31:41 +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 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 bin: add emerald-alignfix 2022-05-13 16:31:41 +05:30
common.sh common: Statically link libstdc++ 2022-05-07 13:29:58 +05:30
emerald-binutils.sh binutils: add 2.38 build script 2022-05-02 01:30:59 +05:30
emerald-gcc.sh gcc: enable fortran support 2022-05-11 14:33:35 +05:30
emerald-get-relver.sh drone: Add CI config 2022-05-02 16:08:15 +05:30
emerald-post-gcc-build.sh format shell scripts with shfmt 2022-05-10 01:41:29 +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