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 gcc: $GCC $@"
544 dump "$(host_text) Ignoring broken host 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
955 # This ones contains the binutils binaries, the gcc ones,
980 # MPC is only needed starting with GCC 4.5
987 # $NDK_DIR/prebuilts/$HOST/android-$TARGET_ARCH-gcc-$GCC_VERSION/
993 # of GCC target libraries.
1032 # by the right gcc config files now. Also TARGET_SYSROOT isn't defined yet.
1052 CC=$HOST-gcc
1071 # This should only used when building the target GCC libraries
1220 # by binutils and gcc, as static libraries that will be placed under
1338 # This is common feature for binutils and gcc
1392 local SRC_DIR="$TOOLCHAIN_SRC_DIR/gcc/gcc-$GCC_VERSION"
1397 stamps_do sysroot-gcc-$SYSTEM-$TOOLCHAIN copy_target_sysroot
1411 # --disable-plugin is for gcc -
1412 # In fact, enable-plugins is broken all Canadian Cross GCC.
1413 # see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50229
1467 dump "$(host_text)$(toolchain_text) Building gcc-core"
1470 BUILD_DIR="$(host_build_dir_for gcc-$GCC_VERSION-$TARGET)" &&
1481 run2 make -j$NUM_JOBS all-gcc &&
1482 run2 make -j$NUM_INSTALL_JOBS install-gcc
1489 local SRC_DIR="$TOOLCHAIN_SRC_DIR/gcc/gcc-$GCC_VERSION"
1493 stamps_do gcc-core-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_host_gcc_core
1500 BUILD_DIR="$(host_build_dir_for gcc-$GCC_VERSION-$TARGET)" &&
1512 dump "$(host_text)$(toolchain_text) Copying target GCC libraries"
1523 # This is a regular-cross build, and we need to build the target GCC libraries.
1524 stamps_do gcc-all-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_target_gcc_libs
1526 # This is a canadian-cross build, or we don't need the target GCC libraries.
1527 stamps_do gcc-core-$GCC_VERSION-$SYSTEM-$TOOLCHAIN build_host_gcc_core
1539 # host toolchain first (even if we don't need target GCC libraries)
1550 stamps_do build-gcc-$SYSTEM-$TOOLCHAIN build_host_gcc
1580 # Copy gcc core binaries
1582 run2 copy_directory "$GCC_DIR/lib/gcc/$TARGET" "$INSTALL_DIR/lib/gcc/$TARGET" &&
1583 run2 copy_directory "$GCC_DIR/libexec/gcc/$TARGET" "$INSTALL_DIR/libexec/gcc/$TARGET" &&
1585 # Copy target gcc libraries
1586 run2 copy_directory "$TARGET_LIBS_DIR/lib/gcc/$TARGET" "$INSTALL_DIR/lib/gcc/$TARGET"