Skip to content
Snippets Groups Projects
  1. Jun 29, 2015
  2. Jun 23, 2015
  3. Jun 16, 2015
  4. Apr 06, 2015
  5. Mar 15, 2015
  6. Feb 10, 2015
  7. Feb 06, 2015
  8. Feb 05, 2015
  9. Jan 10, 2015
  10. Dec 27, 2014
    • nbd's avatar
      build: use gcc-provided ar, nm and ranlib where appropriate · c1c3c7f8
      nbd authored
      
      Since GCC 4.7, GCC provides its own wrappers around ar, nm and ranlib, which
      should be used for builds with link-time optimization. Since GCC 4.9, using them
      actually necessary for LTO builds using convenience libraries to succeed.
      
      There are some packages which try to automatically detect if gcc-{ar,nm,ranlib}
      exist (one example is my package "fastd" in the package repository, which tries
      to use LTO). This breaks because the OpenWrt build system explicitly sets the
      binutils versions of these tools.
      
      As it doesn't cause any issues to use gcc-{ar,nm,ranlib} instead of
      {ar,nm,ranlib} even without LTO, this patch just makes OpenWrt use the
      GCC-provided versions by default, which fixes the build of such packages with
      GCC 4.9.
      
      (I know that builds fail though when clang is used with -flto and
      gcc-{ar,nm,ranlib}, but as all OpenWrt toolchains are based on GCC, this isn't
      a real issue.)
      
      Completely cleaning the tree (or at least `make clean toolchain/clean`) is
      necessary to get a consistent state after the binutils plugins support patch and
      this one (as trying to use gcc-{ar,nm,ranlib} with a binutils built without
      plugin support will definitely lead to a build failure).
      
      Signed-off-by: default avatarMatthias Schiffer <mschiffer@universe-factory.net>
      
      git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43784 3c298f89-4303-0410-b956-a3cf2f4a3e73
      c1c3c7f8
  11. Oct 22, 2014
  12. Oct 20, 2014
  13. Aug 26, 2014
  14. Mar 22, 2014
  15. Mar 21, 2014
  16. Mar 10, 2014
  17. Nov 29, 2013
  18. Nov 22, 2013
  19. Sep 26, 2013
  20. Aug 14, 2013
  21. Jul 29, 2013
  22. Jul 18, 2013
  23. Jul 10, 2013
  24. May 09, 2013
  25. May 06, 2013
  26. Apr 05, 2013
  27. Mar 22, 2013
  28. Feb 20, 2013
  29. Jan 13, 2013
  30. Dec 02, 2012
Loading