diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-12-06 17:04:36 -0600 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-12-06 17:04:36 -0600 |
commit | 924c4ebc08e270431664925c42da998d5d7a2616 (patch) | |
tree | 31a30988d6c6f3dd3225447f4aa58c46307b125d /pkgs/top-level/static.nix | |
parent | 258bc1beb04dce63a5c54569497d4b4df11d1b6e (diff) |
top-level/static.nix: Don’t add -static LDFLAGS in darwin
We can’t do fully static here, like "static" flag in libev does. I’m not 100% sure if this is necessary for Linux (makeStaticBinaries should set -static flag automatically), but leaving as is to avoid breaking anything.
Diffstat (limited to 'pkgs/top-level/static.nix')
-rw-r--r-- | pkgs/top-level/static.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/top-level/static.nix b/pkgs/top-level/static.nix index b3851ba20f09c..caea8040620f3 100644 --- a/pkgs/top-level/static.nix +++ b/pkgs/top-level/static.nix @@ -281,8 +281,8 @@ in { python39 = super.python39.override { static = true; }; python3Minimal = super.python3Minimal.override { static = true; }; - - libev = super.libev.override { static = true; }; + # Note: -static doesn’t work on darwin + libev = super.libev.override { static = !super.stdenv.hostPlatform.isDarwin; }; libexecinfo = super.libexecinfo.override { enableShared = false; }; |