Last active
August 29, 2015 13:56
-
-
Save werelax/8901799 to your computer and use it in GitHub Desktop.
Build config for building some schemes for android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NDK_PATH=/Users/elias/bin/android-ndk-r9c | |
| BASE_TOOLCHAIN_DIR=/tmp/achain | |
| ARCH=armeabi | |
| HOST=x86_64-apple-darwing13.0.0 | |
| TOOLCHAIN_DIR=/tmp/achain | |
| SYSROOT=${TOOLCHAIN_DIR}/sysroot | |
| TARGET="arm-linux-androideabi" | |
| CFLAGS="-mthumb" | |
| LDFLAGS="" | |
| export PATH=${TOOLCHAIN_DIR}/bin:$PATH | |
| export CC="${TARGET}-gcc --sysroot=${SYSROOT}" | |
| export CXX="${TARGET}-g++ --sysroot=${SYSROOT}" | |
| export AR="${TARGET}-ar" | |
| export LD="${TARGET}-ld" | |
| export CFLAGS="${CFLAGS}" | |
| export LDFLAGS="${LDFLAGS}" | |
| make PLATFORM=android clean | |
| make ARCH= \ | |
| PLATFORM=android \ | |
| C_COMPILER="${CC}" \ | |
| HOSTSYSTEM="${TARGET}" \ | |
| TARGET_FEATURES="-no-feature x86 -feature arm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BASE_TOOLCHAIN_DIR=/tmp/achain | |
| ARCH=armeabi | |
| HOST=x86_64-apple-darwin13.0.0 | |
| TOOLCHAIN_DIR=/tmp/achain | |
| SYSROOT=${TOOLCHAIN_DIR}/sysroot | |
| TARGET="arm-linux-androideabi" | |
| CFLAGS="-mthumb" | |
| LDFLAGS="" | |
| export PATH=${TOOLCHAIN_DIR}/bin:$PATH | |
| export CC="${TARGET}-gcc --sysroot=${SYSROOT}" | |
| export CXX="${TARGET}-g++ --sysroot=${SYSROOT}" | |
| export AR="${TARGET}-ar" | |
| export LD="${TARGET}-ld" | |
| export STRIP="${TARGET}-strip" | |
| export RANLIB="${TARGET}-ranlib" | |
| export CFLAGS="${CFLAGS}" | |
| export LDFLAGS="${LDFLAGS}" | |
| export PREFIX="$(pwd)/gambc" | |
| make clean | |
| ./configure --enable-single-host \ | |
| --enable-c-opt \ | |
| --enable-gcc-opt \ | |
| --prefix="${PREFIX}" \ | |
| -host="${HOST}" \ | |
| CC="${CC}" | |
| # make -j4 bootstrap | |
| # make -j4 bootclean | |
| # make -j4 bootstrap | |
| # make -j4 bootclean | |
| # make -j4 all | |
| # make -j4 from-scratch | |
| make -j4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment