krisk0 n00b
Joined: 17 Dec 2015 Posts: 2
|
Posted: Mon Dec 21, 2015 8:13 am Post subject: ebuilds that create x86_64/bionic toolchain |
|
|
I have recently compiled from source and installed onto my Gentoo/x86_64 desktop a piece of Android, including native bionic-targeting toolchain. The toolchain is similar to uclibc installed via crossdev into x86_64-pc-linux-uclibc: it acts as a native compiler; the compiled code runs without emulation or setting environment variables like LD_LIBRARY_PATH.
My compiler creates 32- or 64-bit code; the code can run on Android tablet, too.
My compiler auto-magically inserts command-line switches when appropriate. For instance, -pie -lgnustl_shared are auto-magically inserted when building C++ executable, so command like '...g++ stl_demo.cpp' and compiled executable just work.
My ebuilds and script that build the toolchain are available from https://github.com/krisk0/pc-linux-android. Build process is fully automatic; some ebuilds attempt to take into account CC and CFLAGS settings.
No propriety code is used when building. No git or other CVS download; just https/ftp/http. Download size: 59M not counting standard bundles like gcc-4.9.2.tar.bz2. Build time: 14 minutes on 4-processor 3.2GHz i5-4460 with SSD.
Build requirements:
1. Root access to a computer with Portage package manager.
2. Compiled kernel source in /usr/src/linux
3. Internet access to download .zip files from github.com
Once built, the compiler can be moved to Android tablet and used there. I think. Can't test this because my tablet refuses to run 64-bit x86_64 code.
I accept bug-reports via github mechanism. _________________ github.com/krisk0/pc-linux-android: take a piece of Android |
|