summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/9/default.nix
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-08-18 08:35:41 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-08-18 08:35:41 +0100
commit3b60b31d6072055195a07b175c4999326e26ab14 (patch)
treea5868fa902a7ed5cc47d36ae4be2750c4d2645a7 /pkgs/development/compilers/gcc/9/default.nix
parent55328741511aee080912eafd94c1db82332d6c8a (diff)
downloadnixpkgs-3b60b31d6072055195a07b175c4999326e26ab14.tar
nixpkgs-3b60b31d6072055195a07b175c4999326e26ab14.tar.gz
nixpkgs-3b60b31d6072055195a07b175c4999326e26ab14.tar.bz2
nixpkgs-3b60b31d6072055195a07b175c4999326e26ab14.tar.lz
nixpkgs-3b60b31d6072055195a07b175c4999326e26ab14.tar.xz
nixpkgs-3b60b31d6072055195a07b175c4999326e26ab14.tar.zst
nixpkgs-3b60b31d6072055195a07b175c4999326e26ab14.zip
gcc: drop unused libelf dependency
gcc stopped using libelf in commit 48215350c24 ("re PR lto/46273 (Failed
to bootstrap)") around 2010, before gcc-4.6.0.
Diffstat (limited to 'pkgs/development/compilers/gcc/9/default.nix')
-rw-r--r--pkgs/development/compilers/gcc/9/default.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/development/compilers/gcc/9/default.nix b/pkgs/development/compilers/gcc/9/default.nix
index 707ead542f0..cd34bfe3591 100644
--- a/pkgs/development/compilers/gcc/9/default.nix
+++ b/pkgs/development/compilers/gcc/9/default.nix
@@ -14,7 +14,6 @@
 , texinfo ? null
 , perl ? null # optional, for texi2pod (then pod2man)
 , gmp, mpfr, libmpc, gettext, which, patchelf
-, libelf                      # optional, for link-time optimizations (LTO)
 , isl ? null # optional, for the Graphite optimization framework.
 , zlib ? null
 , gnatboot ? null
@@ -34,9 +33,6 @@
 # cgit) that are needed here should be included directly in Nixpkgs as
 # files.
 
-# LTO needs libelf and zlib.
-assert libelf != null -> zlib != null;
-
 # Make sure we get GNU sed.
 assert stdenv.hostPlatform.isDarwin -> gnused != null;
 
@@ -175,7 +171,7 @@ stdenv.mkDerivation ({
     ++ optional targetPlatform.isLinux patchelf;
 
   buildInputs = [
-    gmp mpfr libmpc libelf
+    gmp mpfr libmpc
     targetPackages.stdenv.cc.bintools # For linking code at run-time
   ] ++ (optional (isl != null) isl)
     ++ (optional (zlib != null) zlib)
@@ -205,7 +201,7 @@ stdenv.mkDerivation ({
       crossStageStatic libcCross
       version
 
-      gmp mpfr libmpc libelf isl
+      gmp mpfr libmpc isl
 
       enableLTO
       enableMultilib