pkgsStatic.gcc: fix build

LTO requires building a compiler plugin, which is a shared object.

The closure is a bit wild but it builds and can compile programs.

+8 -8
+1 -1
pkgs/development/compilers/gcc/10/default.nix
··· 14 14 # we can't rebuild those without also rebuilding the compiler itself, 15 15 # we opt to always build everything unlike our usual policy. 16 16 enableShared ? true 17 - , enableLTO ? true 17 + , enableLTO ? !stdenv.hostPlatform.isStatic 18 18 , texinfo ? null 19 19 , perl ? null # optional, for texi2pod (then pod2man) 20 20 , gmp, mpfr, libmpc, gettext, which, patchelf
+1 -1
pkgs/development/compilers/gcc/11/default.nix
··· 14 14 # we can't rebuild those without also rebuilding the compiler itself, 15 15 # we opt to always build everything unlike our usual policy. 16 16 enableShared ? true 17 - , enableLTO ? true 17 + , enableLTO ? !stdenv.hostPlatform.isStatic 18 18 , texinfo ? null 19 19 , perl ? null # optional, for texi2pod (then pod2man) 20 20 , gmp, mpfr, libmpc, gettext, which, patchelf
+1 -1
pkgs/development/compilers/gcc/4.8/default.nix
··· 14 14 # we can't rebuild those without also rebuilding the compiler itself, 15 15 # we opt to always build everything unlike our usual policy. 16 16 enableShared ? true 17 - , enableLTO ? true 17 + , enableLTO ? !stdenv.hostPlatform.isStatic 18 18 , texinfo ? null 19 19 , perl ? null # optional, for texi2pod (then pod2man); required for Java 20 20 , gmp, mpfr, libmpc, gettext, which, patchelf
+1 -1
pkgs/development/compilers/gcc/4.9/default.nix
··· 14 14 # we can't rebuild those without also rebuilding the compiler itself, 15 15 # we opt to always build everything unlike our usual policy. 16 16 enableShared ? true 17 - , enableLTO ? true 17 + , enableLTO ? !stdenv.hostPlatform.isStatic 18 18 , texinfo ? null 19 19 , perl ? null # optional, for texi2pod (then pod2man); required for Java 20 20 , gmp, mpfr, libmpc, gettext, which, patchelf
+1 -1
pkgs/development/compilers/gcc/6/default.nix
··· 15 15 # we can't rebuild those without also rebuilding the compiler itself, 16 16 # we opt to always build everything unlike our usual policy. 17 17 enableShared ? true 18 - , enableLTO ? true 18 + , enableLTO ? !stdenv.hostPlatform.isStatic 19 19 , texinfo ? null 20 20 , flex 21 21 , perl ? null # optional, for texi2pod (then pod2man); required for Java
+1 -1
pkgs/development/compilers/gcc/7/default.nix
··· 13 13 # we can't rebuild those without also rebuilding the compiler itself, 14 14 # we opt to always build everything unlike our usual policy. 15 15 enableShared ? true 16 - , enableLTO ? true 16 + , enableLTO ? !stdenv.hostPlatform.isStatic 17 17 , texinfo ? null 18 18 , perl ? null # optional, for texi2pod (then pod2man) 19 19 , gmp, mpfr, libmpc, gettext, which, patchelf
+1 -1
pkgs/development/compilers/gcc/8/default.nix
··· 13 13 # we can't rebuild those without also rebuilding the compiler itself, 14 14 # we opt to always build everything unlike our usual policy. 15 15 enableShared ? true 16 - , enableLTO ? true 16 + , enableLTO ? !stdenv.hostPlatform.isStatic 17 17 , texinfo ? null 18 18 , perl ? null # optional, for texi2pod (then pod2man) 19 19 , gmp, mpfr, libmpc, gettext, which, patchelf
+1 -1
pkgs/development/compilers/gcc/9/default.nix
··· 15 15 # we can't rebuild those without also rebuilding the compiler itself, 16 16 # we opt to always build everything unlike our usual policy. 17 17 enableShared ? true 18 - , enableLTO ? true 18 + , enableLTO ? !stdenv.hostPlatform.isStatic 19 19 , texinfo ? null 20 20 , perl ? null # optional, for texi2pod (then pod2man) 21 21 , gmp, mpfr, libmpc, gettext, which, patchelf