nixpkgs/pkgs
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
..
applications Merge pull request #33739 from andir/spark 2018-01-11 18:13:48 +00:00
build-support callCabal2nix: Fix calling with a path in the store. 2018-01-11 10:17:56 -05:00
common-updater
data treewide: Fix deps in a few other fixed output derivations 2018-01-10 11:18:44 -05:00
desktops mate-polkit: add gobjectIntrospection dependence 2018-01-10 09:40:42 -02:00
development avrgcc: bake path to avr-ar into avr-gcc-ar 2018-01-12 00:48:35 +00:00
games treewide: Fix deps in a few other fixed output derivations 2018-01-10 11:18:44 -05:00
misc materia-theme: 20171213 -> 20180110 2018-01-11 21:36:02 +01:00
os-specific busybox: 1.27.2 -> 1.28.0 2018-01-11 21:42:32 +08:00
servers postgresql: Respect dontDisableStatic 2018-01-11 09:19:46 -05:00
shells nix-bash-completions: 0.6.1 -> 0.6.2 2018-01-10 08:40:57 +01:00
stdenv Merge pull request #33681 from obsidiansystems/fixed-output-deps 2018-01-10 14:28:10 -05:00
test sierra-shared-test: fix build 2018-01-05 23:20:55 +01:00
tools lf: 2017-10-30 -> 2018-01-11 2018-01-11 20:32:33 +01:00
top-level Merge pull request #33739 from andir/spark 2018-01-11 18:13:48 +00:00