summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2021-08-07 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2021-08-19 09:30:46 +0200
commita9e262063072f4220414868ce4a4812e6676e374 (patch)
tree3e802f5fe3d2b6c69a8e68d724ff5e31c828c39f
parent36acee382058fcdc0a7dd69c633357457f022f36 (diff)
downloadnixpkgs-a9e262063072f4220414868ce4a4812e6676e374.tar
nixpkgs-a9e262063072f4220414868ce4a4812e6676e374.tar.gz
nixpkgs-a9e262063072f4220414868ce4a4812e6676e374.tar.bz2
nixpkgs-a9e262063072f4220414868ce4a4812e6676e374.tar.lz
nixpkgs-a9e262063072f4220414868ce4a4812e6676e374.tar.xz
nixpkgs-a9e262063072f4220414868ce4a4812e6676e374.tar.zst
nixpkgs-a9e262063072f4220414868ce4a4812e6676e374.zip
libbfd: fix static build
-rw-r--r--pkgs/development/libraries/libbfd/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libbfd/default.nix b/pkgs/development/libraries/libbfd/default.nix
index 499f04349b5..154e604e497 100644
--- a/pkgs/development/libraries/libbfd/default.nix
+++ b/pkgs/development/libraries/libbfd/default.nix
@@ -37,9 +37,8 @@ stdenv.mkDerivation {
   configureFlags = [
     "--enable-targets=all" "--enable-64-bit-bfd"
     "--enable-install-libbfd"
-    "--enable-shared"
     "--with-system-zlib"
-  ];
+  ] ++ lib.optional (!stdenv.hostPlatform.isStatic) "--enable-shared";
 
   enableParallelBuilding = true;