1.2 KiB
1.2 KiB
Emerald GCC
About
A toolchain to cross compile to Android. This outputs executables that link against Android's libc(bionic). This is a personal project.
Why
Android’s 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
- Get tarball from latest gitea release
- Extract
$ 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
- Patches from its-pointless
- Patches from Android GCC 4.9
- Sysroot from NDK
- Wiki pages from Termux