summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/9/default.nix
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-06-28 23:59:59 -0700
committerAdam Joseph <adam@westernsemico.com>2023-07-01 13:12:22 -0700
commite41f217257cf34d1328cad141cfb01c6f8093b37 (patch)
tree16dacd85f83323928ffc8a17fd47d064ed99f2ab /pkgs/development/compilers/gcc/9/default.nix
parent6980e6b35aacccd4e75a76a384f9dec30f31fa55 (diff)
downloadnixpkgs-e41f217257cf34d1328cad141cfb01c6f8093b37.tar
nixpkgs-e41f217257cf34d1328cad141cfb01c6f8093b37.tar.gz
nixpkgs-e41f217257cf34d1328cad141cfb01c6f8093b37.tar.bz2
nixpkgs-e41f217257cf34d1328cad141cfb01c6f8093b37.tar.lz
nixpkgs-e41f217257cf34d1328cad141cfb01c6f8093b37.tar.xz
nixpkgs-e41f217257cf34d1328cad141cfb01c6f8093b37.tar.zst
nixpkgs-e41f217257cf34d1328cad141cfb01c6f8093b37.zip
gcc: use hasSharedLibraries instead of isStatic
Diffstat (limited to 'pkgs/development/compilers/gcc/9/default.nix')
-rw-r--r--pkgs/development/compilers/gcc/9/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/compilers/gcc/9/default.nix b/pkgs/development/compilers/gcc/9/default.nix
index d022349c73a..79ca57e2f72 100644
--- a/pkgs/development/compilers/gcc/9/default.nix
+++ b/pkgs/development/compilers/gcc/9/default.nix
@@ -9,8 +9,8 @@
 , profiledCompiler ? false
 , langJit ? false
 , staticCompiler ? false
-, enableShared ? !stdenv.targetPlatform.isStatic
-, enableLTO ? !stdenv.hostPlatform.isStatic
+, enableShared ? stdenv.targetPlatform.hasSharedLibraries
+, enableLTO ? stdenv.hostPlatform.hasSharedLibraries
 , texinfo ? null
 , perl ? null # optional, for texi2pod (then pod2man)
 , gmp, mpfr, libmpc, gettext, which, patchelf, binutils
@@ -292,5 +292,5 @@ lib.pipe (stdenv.mkDerivation ({
 // optionalAttrs (enableMultilib) { dontMoveLib64 = true; }
 )
 ) [
-  (callPackage ../common/libgcc.nix   { inherit version langC langCC langJit targetPlatform hostPlatform crossStageStatic; })
+  (callPackage ../common/libgcc.nix   { inherit version langC langCC langJit targetPlatform hostPlatform enableShared crossStageStatic; })
 ]