Skip to content
Snippets Groups Projects
  1. Jan 28, 2017
  2. Jan 07, 2016
    • Han Shen's avatar
      Add githash to binutils version string. · f2806574
      Han Shen authored
      So the output for 'ld -v' is something like -
      GNU ld (binutils-2.25-3febaa7) 2.25.51.20141117
      
      Tested by: ./build.py --toolchain arm-linux-androideabi --host linux
      
      Change-Id: I4687fb5696bf3aa7a08a94149090055a76ec2294
      12 tags
      f2806574
  3. Oct 15, 2015
    • Dan Albert's avatar
      Prefer static libraries for Windows GCC. · fad95906
      Dan Albert authored
      We don't want to have to ship any extra DLLs in the NDK (specifically,
      this is being added to avoid run time dependency on
      libwinpthread-1.dll). We'll still have dynamic dependencies on things
      like kernel32.dll, but that's expected.
      
      Bug: http://b/24911020
      Change-Id: Ie15de47d99bb9257abcab29929ec1585f765db8d
      fad95906
  4. Sep 24, 2015
    • Than McIntosh's avatar
      Fix selected issues with non-4.9 gcc builds · 5f349ca2
      Than McIntosh authored
      Fix some issues that crop up when using build-gcc.sh on post-4.9
      versions of GCC (for triage/bug-reproduction purposes): trunk gcc
      calls isl directly, no longer through "cloog", and requires updated
      version of ISL. Resulting build still fails compiling libatomic,
      however the cross compiler itself is still usable.
      
      Change-Id: Ieff549580777a01891ed62b59ff97db610eae42b
      5f349ca2
  5. Jun 19, 2015
  6. Mar 02, 2015
  7. Apr 16, 2014
    • Andrew Hsieh's avatar
      Fix binutils-2.24 detection · 75542e77
      Andrew Hsieh authored
      Starting from binutils-2.24, version is contained in AC_INIT
      instead of M_INIT_AUTOMAKE
      
      Change-Id: I447affb61d73069593aacc3cae3a0b99186e506f
      75542e77
  8. Apr 03, 2014
  9. Mar 21, 2014
  10. Feb 28, 2014
    • Pavel Chupin's avatar
      Remove libbfd.a build for host · 0a5059a8
      Pavel Chupin authored
      
      Due to tricky configuration it cannot be build well when building 64-bit
      targets. I didn't find any place in current AOSP tree where we are using
      host libbfd.a so probably it's not required anymore?
      
      build-host-gcc.sh doesn't build it either.
      
      Change-Id: I9ed62c2d16bcb393e61bf913b6bab222bb783403
      Signed-off-by: default avatarPavel Chupin <pavel.v.chupin@intel.com>
      0a5059a8
  11. Feb 26, 2014
  12. Oct 17, 2013
  13. May 22, 2013
  14. May 03, 2013
    • Andrew Hsieh's avatar
      Don't build GDB in canadian build->target · 97721c6e
      Andrew Hsieh authored
      In canadian build->target is built first (eg. in order to build/run
      executable on build system to generate table), then host->target.
      
      Don't build GDB in build->target, because GDB doens't need it.  Besides,
      --with-python= pointing to "host" header can fail "build"'s gcc.
      
      Change-Id: Ic1a8a9d6fe5974a6747ca4342a336beea9987f47
      97721c6e
  15. May 02, 2013
  16. Apr 09, 2013
    • Andrew Hsieh's avatar
      Fix for GCC 4.8 with graphite · 0bb27f14
      Andrew Hsieh authored
      GCC 4.8 needs cloog-0.18.0 and isl-0.11.1 for graphite
      framework.
      
      Change-Id: I45a6f34f9981a489d65cc23a0f20e439c11100b2
      0bb27f14
    • Andrew Hsieh's avatar
      Add aarch64 · 8509652a
      Andrew Hsieh authored
      Change-Id: I0575d428472c12b56e10367abb73a2b5fd794a08
      8509652a
    • Andrew Hsieh's avatar
      Fix GCC 4.8 mingw build · 33c45e11
      Andrew Hsieh authored
      Export CXX_FOR_BUILD otherwise the default g++ can have different
      bitness than libiberty.a which is always built in 32-bit for now.
      Didn't happen prior to GCC 4.8 because GCC was in C only.  GCC from
      4.8 now uses C++ as its implementation language
      
      Change-Id: I318a2e469e1f1ce5cea71654ca5387d26cee5b73
      33c45e11
  17. Mar 27, 2013
    • Andrew Hsieh's avatar
      Define READELF_FOR_TARGET in gcc build · 4ecf441b
      Andrew Hsieh authored
      Otherwise realelf won't be found in darwin, and cause
      some backend to misbehave.
      
      READELF_FOR_TARGET appears in gcc-4.7, but is backported
      to gcc-4.6 as well.
      
      Change-Id: Ia45b3ce046cc68a40862be8f5a906606d2fd0665
      4ecf441b
  18. Jan 30, 2013
    • Pavel Chupin's avatar
      Define correct default gcc target march/mtune/mfpmath flags for x86 · 1104ace9
      Pavel Chupin authored
      
      This is required to enforce correct x86 -march/-mtune flags which are
      currently hardcoded in gcc (see gcc/config/i386/gnu-user.h). The problem
      is that gcc hardcode doesn't work, it is overridden by generic values.
      It can be seen with -### option for any compilation.
      This patch adds correct configure flags and after it is merged
      -march/-mtune flags in gcc can be removed.
      
      Default -mfpmath can't be seen in -### but can be configured as well to
      eliminate hardcode.
      
      Also cleanup old flags which didn't work anyway. target_cpu is i686 and
      not x86.
      
      Change-Id: I43ea7034e855629933da2d1bede90cd74a238861
      Signed-off-by: default avatarPavel Chupin <pavel.v.chupin@intel.com>
      1104ace9
  19. Jan 19, 2013
    • Andrew Hsieh's avatar
      Avoid race condition by "make install -j1" in canadian build->target · de36c131
      Andrew Hsieh authored
      The first stage of canadian build "build->target" fails very
      frequently during libiberty.a installation in parallel ( > -j4)
      The observed sympton is that all threads try to install the
      same libiberty.a and latecomer fails in "mv -f" when libiberty.an
      is already renamed. eg.
      
        /usr/bin/install -c -m 644 ./libiberty.a \
          my-build-path/host-x86_64-linux-gnu/install/lib/libiberty.an
        ( cd my-build-path/host-x86_64-linux-gnu/install/lib ;
          chmod 644 ./libiberty.an ;
          x86_64-linux-gnu-ranlib ./libiberty.an )
        mv -f my-build-path/host-x86_64-linux-gnu/install/lib/libiberty.an \
              my-build-path/host-x86_64-linux-gnu/install/lib/libiberty.a
      
      build/tools/build-gcc.sh can scale back and continue in half -j
      until it succeeds, but the 2nd stage "host->target" often build
      slowly with lower -j
      
      Reduce compilations time of GCC 4.7 --mingw from 669s to 543s, or
      1.23X
      
      Change-Id: Ie683319adf445303f485258c65ef3189f605f300
      de36c131
  20. Jan 17, 2013
    • Andrew Hsieh's avatar
      Add new flags CFLAGS_FOR_BUILD and LDFLAGS_FOR_BUILD · 6d9baa30
      Andrew Hsieh authored
      In canadian cross build CFLAGS/LDFLAGS may contain flags good
      for "host" but not valid for "build".  Define new flags.  eg.
      
        # flags common to both "host" and "build"
        CFLAGS_FOR_BUILD="-O2 -s -Wno-error"
        LDFLAGS_FOR_BUILD=
      
        # additional flags for "host"
        CFLAGS="$CFLAGS_FOR_BUILD $HOST_CFLAGS"
        LDFLAGS="$LDFLAGS_FOR_BUILD $HOST_LDFLAGS"
      
      Change-Id: I723d4fa2b62a3945922a027555f30997a66cce48
      6d9baa30
  21. Dec 28, 2012
  22. Dec 20, 2012
    • Andrew Hsieh's avatar
      Fix build to compile ppl > 0.11.2 · 53dbbd57
      Andrew Hsieh authored
      Provides library path for the new ppl 'configure' which needs
      to links libgmp libgmpxx.
      
      Also remove outdated --with-libgmp-prefix
      
      Change-Id: I3be601c523fe1512e878a0aad632b9da2721c1bd
      53dbbd57
  23. Dec 15, 2012
  24. Dec 14, 2012
    • Andrew Hsieh's avatar
      Don't compile host libraries with --with-sysroot · e9ba2efe
      Andrew Hsieh authored
      build-gcc.sh passes on --with-sysroot which is really meant for
      target.  Remove it from "baseargs" to form "host_baseargs"
      (borrowed the unused "gold_baseargs") and used it for building
      host libraries, otherwise gmp may not have incorrect
      dependency_libs= in .libs/libgmpxx.lai.
      
      Change-Id: I2d1c1328039a48b72ce6b4191a71ed5482894459
      e9ba2efe
  25. Dec 13, 2012
  26. Dec 09, 2012
    • Jim Huang's avatar
      binutils: disable the installation of localized packages · 67ba0c88
      Jim Huang authored
      Since the prefix directory usually differs from where Android
      toolchain is installed and used, it doesn't make sense to provide
      the localized packages, which rely on the given prefix.
      
      Change-Id: I5634e37bf5e4fda46d4d6bc43d037d6bc2fe6ba2
      67ba0c88
    • Jim Huang's avatar
      libbfd: prevent from incorrect assignment of $CFLAGS · cb3aee6e
      Jim Huang authored
      For older versions of binutils, the automake script can not recognize the suffixing
      environment variable $CFLAGS and complain as following:
      
             (cd libbfd-binutils-2.17 ; \
               .././../binutils/binutils-2.17/configure \
                --prefix=/usr/local --target= --host=x86_64-unknown-linux-gnu \
                --build=x86_64-unknown-linux-gnu --program-transform-name='s,y,y,' \
                --disable-shared \
                --enable-install-libbfd --with-included-gettext CFLAGS=" -m32") && \
              touch stmp-config-host-libbfd
      configure: warning: CFLAGS= -m32: invalid host type
      creating cache ./config.cache
      configure: error: can only configure for one host and one target at a time
      
      Change-Id: I075a37d4bfd9b5744ec9c5ffc73446cbbba220b8
      cb3aee6e
  27. Oct 23, 2012
    • Andrew Hsieh's avatar
      Options brought in from core combo for IA · 106603b9
      Andrew Hsieh authored
      Used to be local NDK patch at $NDK/build/tools/toolchain-patches/
      build/0001-Options-brought-in-from-core-combo-for-IA.patch
      
      Change-Id: I50a6397414a6574c51857dc2c8826ef50f5f4a0c
      106603b9
  28. Aug 08, 2012
  29. May 24, 2012
  30. May 11, 2012
  31. May 09, 2012
  32. May 03, 2012