summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/4.8
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2017-05-30 20:17:10 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-06-22 17:53:52 -0400
commit12795a706852539b8a29c796caced6295e7af459 (patch)
treebbc5d22ec4cf48406442ebabfdd83a6d418d7491 /pkgs/development/compilers/gcc/4.8
parentd016637629e16548a98c9c570136d8ba60e8c9cd (diff)
downloadnixlib-12795a706852539b8a29c796caced6295e7af459.tar
nixlib-12795a706852539b8a29c796caced6295e7af459.tar.gz
nixlib-12795a706852539b8a29c796caced6295e7af459.tar.bz2
nixlib-12795a706852539b8a29c796caced6295e7af459.tar.lz
nixlib-12795a706852539b8a29c796caced6295e7af459.tar.xz
nixlib-12795a706852539b8a29c796caced6295e7af459.tar.zst
nixlib-12795a706852539b8a29c796caced6295e7af459.zip
misc: Remove almost all uses of stdenv.{ccCross,binutils}
Diffstat (limited to 'pkgs/development/compilers/gcc/4.8')
-rw-r--r--pkgs/development/compilers/gcc/4.8/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/4.8/default.nix b/pkgs/development/compilers/gcc/4.8/default.nix
index de9d3165b55e..38ff23f86a6d 100644
--- a/pkgs/development/compilers/gcc/4.8/default.nix
+++ b/pkgs/development/compilers/gcc/4.8/default.nix
@@ -401,7 +401,7 @@ stdenv.mkDerivation ({
     NM_FOR_TARGET = "${targetPlatform.config}-nm";
     CXX_FOR_TARGET = "${targetPlatform.config}-g++";
     # If we are making a cross compiler, cross != null
-    NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else "";
+    NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
     dontStrip = true;
     configureFlags = ''
       ${if enableMultilib then "" else "--disable-multilib"}