Home | History | Annotate | Download | only in tools

Lines Matching refs:gcc

17 # Rebuild the host GCC toolchain binaries from sources.
90 This is required to generate proper target GCC libraries.
131 register_var_option "--build-dir=<path>" BUILD_DIR "Build GCC into directory"
143 register_var_option "--no-target-libs" NO_TARGET_LIBS "Don't build gcc target libs."
181 BUILD_DIR=/tmp/ndk-$USER/build/host-gcc
509 local TMPC=/tmp/build-host-gcc-$USER-$$.c
538 local GCC="$PREFIX-gcc"
539 if [ -f "$GCC" ]; then
540 if check_compiler "$GCC" "$@"; then
541 HOST_FULLPREFIX="${GCC%%gcc}"
542 dump "$(host_text) Using host gcc: $GCC $@"
544 gcc: $GCC $@"
557 local GCC="$(which $PREFIX-gcc 2>/dev/null)"
558 if [ "$GCC" -a -e "$GCC" ]; then
559 if check_compiler "$GCC" "$@"; then
560 HOST_FULLPREFIX=${GCC%%gcc}
561 dump "$(host_text) Using host gcc: ${HOST_FULLPREFIX}gcc $@"
563 dump "$(host_text) Ignoring broken host gcc: $GCC $@"
604 # $1: compiler full path (.e.g /path/to/fullprefix-gcc)
612 local TMPC=/tmp/build-host-gcc-bits-$USER-$$.c
661 try_host_fullprefix "$(dirname $ANDROID_NDK_ROOT)/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6" i686-linux
662 try_host_fullprefix "$(dirname $ANDROID_NDK_ROOT)/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3" i686-linux
673 try_host_fullprefix "$(dirname $ANDROID_NDK_ROOT)/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6" x86_64-linux
724 dump "It looks like $DARWIN_TOOLCHAIN-gcc is not in your path, or does not work correctly!"
727 dump "Using darwin cross-toolchain: ${HOST_FULLPREFIX}gcc"
744 # to have a mingw32-gcc package that provided a 32-bit
747 # named mingw-gcc which provides i686-w64-mingw32 and
753 dump " x86_64-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
754 dump " i686-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
755 dump " i586-mingw32msvc-gcc ('mingw32' Debian/Ubuntu package)"
762 # with the gmp/mpfr/mpc/binutils/gcc configure scripts.
778 # Sanity check for GMP which doesn't build with x86_64-w64-mingw32-gcc
799 dump " x86_64-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
800 dump " i686-w64-mingw32-gcc (see build-mingw64-toolchain.sh)"
801 dump " amd64-mingw32msvc-gcc (Debian/Ubuntu - broken until Ubuntu 11.10)"
830 if ! check_compiler_bitness ${HOST_FULLPREFIX}gcc $HOST_BITS; then
836 if ! check_compiler_bitness ${HOST_FULLPREFIX}gcc $HOST_BITS $TRY_CFLAGS; then
837 panic "Can't find a way to generate $HOST_BITS binaries with this compiler: ${HOST_FULLPREFIX}gcc"
851 # wrapper toolchain named 'i686-linux-gnu-gcc' that will redirect
855 # This helps tremendously getting stuff to compile with the GCC
870 # where the generated GCC binaries will run, not the current machine's
928 # Returns the install location of the $HOST gcc cross-toolchain
934 # Returns the install location of the $BUILD gcc cross-toolchain
955 # This ones contains the binutils binaries, the gcc ones,
981 # MPC is only needed starting with GCC 4.5
988 # $NDK_DIR/prebuilts/$HOST/android-$TARGET_ARCH-gcc-$GCC_VERSION/
994 # of GCC target libraries.
1020 CC=$HOST-gcc
1039 # This should only used when building the target GCC libraries
1188 # by binutils and gcc, as static libraries that will be placed under
1315 # This is common feature for binutils and gcc
1369 local SRC_DIR="$TOOLCHAIN_SRC_DIR/gcc/gcc-$GCC_VERSION"
1374 stamps_do sysroot-gcc-$SYSTEM-$TOOLCHAIN copy_target_sysroot
1440 dump "$(host_text)$(toolchain_text) Building gcc-core"
1443 BUILD_DIR="$(host_build_dir_for gcc-$GCC_VERSION-$TARGET)" &&
1454 run2 make -j$NUM_JOBS all-gcc &&
1455 run2 make -j$NUM_INSTALL_JOBS install-gcc
1462 local SRC_DIR="$TOOLCHAIN_SRC_DIR/gcc/gcc-$GCC_VERSION"
1466 stamps_do gcc
1473 BUILD_DIR="$(host_build_dir_for gcc-$GCC_VERSION-$TARGET)" &&
1485 dump "$(host_text)$(toolchain_text) Copying target GCC libraries"
1496 # This is a regular-cross build, and we need to build the target GCC libraries.
1497 stamps_do gcc-all-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_target_gcc_libs
1499 # This is a canadian-cross build, or we don't need the target GCC libraries.
1500 stamps_do gcc-core-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_host_gcc_core
1512 # host toolchain first (even if we don't need target GCC libraries)
1523 stamps_do build-gcc-$SYSTEM-$TOOLCHAIN build_host_gcc
1562 # Copy gcc core binaries
1564 run2 copy_directory "$GCC_DIR/lib/gcc/$TARGET" "$INSTALL_DIR/lib/gcc/$TARGET" &&
1565 run2 copy_directory "$GCC_DIR/libexec/gcc/$TARGET" "$INSTALL_DIR/libexec/gcc/$TARGET" &&
1567 # Copy target gcc libraries
1568 run2 copy_directory "$TARGET_LIBS_DIR/lib/gcc/$TARGET" "$INSTALL_DIR/lib/gcc/$TARGET"
1588 do_relink "$INSTALL_DIR"/bin/$TARGET-gcc-$GCC_VERSION $TARGET-gcc &&