Shifted to https://git.envs.net/perosar/emerald-gcc
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.
|
8 months ago | |
---|---|---|
bin | 9 months ago | |
patches/gcc | 9 months ago | |
.drone.yml | 8 months ago | |
.gitignore | 9 months ago | |
LICENSE | 9 months ago | |
README.md | 8 months ago | |
common.sh | 8 months ago | |
emerald-binutils.sh | 8 months ago | |
emerald-gcc.sh | 8 months ago | |
emerald-get-relver.sh | 9 months ago | |
emerald-post-gcc-build.sh | 8 months ago | |
emerald-sysroot.sh | 9 months ago |
README.md
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
- Align fix script from termux-ndk
- Wiki pages from Termux