summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/7/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-11-28 18:37:11 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-12-30 22:04:22 -0500
commit4ad9a97e9678c70ca974c43fe3ef27f0e65af15a (patch)
treee4d44b279775ad880133353d1db0418c0328354f /pkgs/development/compilers/gcc/7/default.nix
parent0f5c80463176f7b146e8ef1943a3bbd61d4cbaf0 (diff)
downloadnixlib-4ad9a97e9678c70ca974c43fe3ef27f0e65af15a.tar
nixlib-4ad9a97e9678c70ca974c43fe3ef27f0e65af15a.tar.gz
nixlib-4ad9a97e9678c70ca974c43fe3ef27f0e65af15a.tar.bz2
nixlib-4ad9a97e9678c70ca974c43fe3ef27f0e65af15a.tar.lz
nixlib-4ad9a97e9678c70ca974c43fe3ef27f0e65af15a.tar.xz
nixlib-4ad9a97e9678c70ca974c43fe3ef27f0e65af15a.tar.zst
nixlib-4ad9a97e9678c70ca974c43fe3ef27f0e65af15a.zip
gcc: Don't let solaris hack pollute CC elsehwere
Diffstat (limited to 'pkgs/development/compilers/gcc/7/default.nix')
-rw-r--r--pkgs/development/compilers/gcc/7/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/7/default.nix b/pkgs/development/compilers/gcc/7/default.nix
index 5016735b56c5..c20546b59e8e 100644
--- a/pkgs/development/compilers/gcc/7/default.nix
+++ b/pkgs/development/compilers/gcc/7/default.nix
@@ -408,7 +408,7 @@ stdenv.mkDerivation ({
   };
 
   # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210
-  CC = if hostPlatform.system == "x86_64-solaris" then "gcc -m64" else "gcc";
+  ${if hostPlatform.system == "x86_64-solaris" then "CC" else null} = "gcc -m64";
 
   # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the
   # library headers and binaries, regarless of the language being compiled.