summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/6/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-01-03 17:51:18 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-01-03 19:19:09 +0000
commit8e482321805542e08eaf8819a6ad94ea4ba20370 (patch)
treed4f19fc9ea6112f2f9573497963192a6e561f884 /pkgs/development/compilers/gcc/6/default.nix
parentf52263ced0937e72453e7fbce9fefb5f425f650b (diff)
downloadnixpkgs-8e482321805542e08eaf8819a6ad94ea4ba20370.tar
nixpkgs-8e482321805542e08eaf8819a6ad94ea4ba20370.tar.gz
nixpkgs-8e482321805542e08eaf8819a6ad94ea4ba20370.tar.bz2
nixpkgs-8e482321805542e08eaf8819a6ad94ea4ba20370.tar.lz
nixpkgs-8e482321805542e08eaf8819a6ad94ea4ba20370.tar.xz
nixpkgs-8e482321805542e08eaf8819a6ad94ea4ba20370.tar.zst
nixpkgs-8e482321805542e08eaf8819a6ad94ea4ba20370.zip
gcc: Always pass `--enable-shared` by default
I am actually a bit skeptical about this, but @matthewbauer makes the
case for this in
https://github.com/NixOS/nixpkgs/pull/107238#discussion_r546454453 and
I'm happy to go with it not being as in the loop on static linking stuff
as he is.
Diffstat (limited to 'pkgs/development/compilers/gcc/6/default.nix')
-rw-r--r--pkgs/development/compilers/gcc/6/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/6/default.nix b/pkgs/development/compilers/gcc/6/default.nix
index 6fe953e163f..f9c5c711655 100644
--- a/pkgs/development/compilers/gcc/6/default.nix
+++ b/pkgs/development/compilers/gcc/6/default.nix
@@ -8,7 +8,12 @@
 , profiledCompiler ? false
 , langJit ? false
 , staticCompiler ? false
-, enableShared ? !stdenv.targetPlatform.isStatic
+, # N.B. the defult is intentionally not from an `isStatic`. See
+  # https://gcc.gnu.org/install/configure.html - this is about target
+  # platform libraries not host platform ones unlike normal. But since
+  # we can't rebuild those without also rebuilding the compiler itself,
+  # we opt to always build everything unlike our usual policy.
+  enableShared ? true
 , enableLTO ? true
 , texinfo ? null
 , flex