Go to file
PeroSar f04103c117
continuous-integration/drone Build is passing Details
common: Statically link libstdc++
Issue: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by aarch64-linux-android-<...>)

Effected executables: aarch64-linux-android-ld.gold aarch64-linux-android-dwp

Signed-off-by: PeroSar <perosar1111@gmail.com>
2022-05-07 13:29:58 +05:30
bin fix rust builds, add ldd 2022-05-06 23:49:12 +05:30
patches/gcc Bump gcc to 12.1.0 2022-05-07 12:47:08 +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 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 Bump gcc to 12.1.0 2022-05-07 12:47:08 +05:30
emerald-get-relver.sh drone: Add CI config 2022-05-02 16:08:15 +05:30
emerald-post-gcc-build.sh Bump gcc to 12.1.0 2022-05-07 12:47:08 +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