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.
This commit is contained in:
Matthew Bauer 2020-12-06 17:04:36 -06:00
parent 258bc1beb0
commit 924c4ebc08

View file

@ -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 doesnt work on darwin
libev = super.libev.override { static = !super.stdenv.hostPlatform.isDarwin; };
libexecinfo = super.libexecinfo.override { enableShared = false; };