about summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-10-10 19:01:42 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-11-05 17:10:53 -0500
commit70d91badf57bbe4cd884e5da22b14662dd36009c (patch)
tree9a69666a2218d4574dbaf8fb852371b8685ae3ec /pkgs/build-support/cc-wrapper/default.nix
parent5ae8f18f4d8216ec987e0f63b7d2b9a416a4ca82 (diff)
downloadnixlib-70d91badf57bbe4cd884e5da22b14662dd36009c.tar
nixlib-70d91badf57bbe4cd884e5da22b14662dd36009c.tar.gz
nixlib-70d91badf57bbe4cd884e5da22b14662dd36009c.tar.bz2
nixlib-70d91badf57bbe4cd884e5da22b14662dd36009c.tar.lz
nixlib-70d91badf57bbe4cd884e5da22b14662dd36009c.tar.xz
nixlib-70d91badf57bbe4cd884e5da22b14662dd36009c.tar.zst
nixlib-70d91badf57bbe4cd884e5da22b14662dd36009c.zip
treewide: Depend on stdenv.cc.bintools instead of binutils directly
One should do this when needed executables at build time. It is more
honest and cross-friendly than refering to binutils directly.
Diffstat (limited to 'pkgs/build-support/cc-wrapper/default.nix')
-rw-r--r--pkgs/build-support/cc-wrapper/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index 489fb02dcb5d..6de2693a8b17 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -97,6 +97,11 @@ stdenv.mkDerivation {
   outputs = [ "out" "man" ];
 
   passthru = {
+    # "cc" is the generic name for a C compiler, but there is no one for package
+    # providing the linker and related tools. The two we use now are GNU
+    # Binutils, and Apple's "cctools"; "binutils" as an attempt to find an
+    # unused middle-ground name that evokes both.
+    bintools = binutils_bin;
     inherit libc nativeTools nativeLibc nativePrefix isGNU isClang default_cxx_stdlib_compile
             prefix;