nixpkgs/pkgs/development
Kier Davis 6bfa42218d
avrgcc: bake path to avr-ar into avr-gcc-ar
gcc provides wrappers for binutils' ar, nm and ranlib
executables, which must be used instead when using link-time
optimisation. See also:
http://manpages.ubuntu.com/manpages/zesty/man1/aarch64-linux-gnu-gcc-ar-5.1.html

The upstream version of avr-gcc-ar searches in paths passed to
the configure script for the avr-ar binary that it wraps, falling
back to searching PATH instead. Thus currently avr-gcc-ar works on
Nix, but only if avrbinutils is already in the environment.

This change bakes the path to avr-ar into avr-gcc-ar, since its path
is known at compile time. It also no longer searches PATH, meaning the
user's local environment won't override this path.

Note that avr-gcc-nm and avr-gcc-ranlib are compiled from the same
source file as avr-gcc-ar, just with different compiler flags.

Testing on master (without avrbinutils in the environment):

    $ nix-build -A avrgcc
    $ result/bin/avr-gcc-ar --version
    result/bin/avr-gcc-ar: Cannot find binary 'avr-ar'

Testing on branch with this fix:

    $ nix-build -A avrgcc
    $ result/bin/avr-gcc-ar --version
    GNU ar (GNU Binutils) 2.26.20160125
    ...
2018-01-12 00:48:35 +00:00
..
arduino arduino: 1.8.2 -> 1.8.5 2018-01-07 15:45:46 +01:00
beam-modules Elixir: init 1.6-rc.0 (#33034) 2017-12-26 16:53:24 -05:00
bower-modules/generic
compilers Merge pull request #33733 from dhess/arm-cross-fixes 2018-01-11 16:56:20 +01:00
coq-modules coqPackages.tlc: init at 20171206 2017-12-28 08:19:54 +01:00
dotnet-modules/patches
eclipse/ecj
em-modules/generic
go-modules buildGoPackage: fill in meta.homepage 2017-12-20 01:07:14 +00:00
guile-modules
haskell-modules Merge pull request #33733 from dhess/arm-cross-fixes 2018-01-11 16:56:20 +01:00
idris-modules treewide: Don't use envHook anymore 2017-12-30 22:04:22 -05:00
interpreters Merge pull request #33751 from ankhers/update_elixir_rc 2018-01-12 00:14:07 +08:00
java-modules Change many homepage urls from http to https #30636 2017-11-10 22:13:46 +01:00
libraries Merge pull request #33756 from acowley/pngpp-darwin 2018-01-11 23:26:47 +01:00
lisp-modules Merge pull request #26805 from obsidiansystems/cross-elegant 2017-12-30 22:58:02 -05:00
lua-modules
misc avrgcc: bake path to avr-ar into avr-gcc-ar 2018-01-12 00:48:35 +00:00
mobile titaniumenv: add hack to reduce keychain blocking problems 2018-01-09 13:24:30 +01:00
node-packages nodePackages: regenerate with node2nix 1.5.1 2018-01-10 21:59:18 +01:00
ocaml-modules ocamlPackages.otr: 0.3.3 -> 0.3.4 2018-01-07 10:00:45 +00:00
perl-modules mariadb: lib -> connector-c 2017-12-29 02:18:35 +01:00
pharo pharo: disable on darwin 2018-01-02 19:19:37 +01:00
pure-modules treewide: generalise for both mysql & mariadb 2017-12-29 02:18:35 +01:00
python-modules pythonPackages.botocore: 1.8.21 -> 1.8.26 2018-01-11 17:20:52 +08:00
qtcreator qtcreator: restrict to intel linux 2017-12-07 14:51:57 +00:00
r-modules mariadb: lib -> connector-c 2017-12-29 02:18:35 +01:00
ruby-modules ruby-modules: Add new url source type 2018-01-04 07:54:30 -08:00
stm32/betaflight betaflight: init at 3.2.3 2018-01-04 14:04:40 -08:00
tools icestorm: 2017.12.06 -> 2018.01.10 2018-01-10 14:00:58 -06:00
web nodejs: 9.3.0 -> 9.4.0 2018-01-10 20:14:15 +03:00