diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2022-08-24 19:10:16 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2022-08-24 19:10:16 +0200 |
commit | b784c5ae63dd288375af1b4d37b8a27dd8061887 (patch) | |
tree | 5b9ae2ea4f007b857f734d49105cbc9e6f19619e /lib | |
parent | 435bb4ba1ff93fc95e536d4c6d9e3ff6cd3626ff (diff) | |
parent | 006765c965bc1f95dbb782c617527d7b79d6d489 (diff) |
Merge #186941: staging-next 2022-08-16
Diffstat (limited to 'lib')
-rw-r--r-- | lib/systems/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 2990afde3e9a..8f579368d6d3 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -65,11 +65,17 @@ rec { # is why we use the more obscure "bfd" and not "binutils" for this # choice. else "bfd"; - extensions = { + extensions = rec { sharedLibrary = /**/ if final.isDarwin then ".dylib" else if final.isWindows then ".dll" else ".so"; + staticLibrary = + /**/ if final.isWindows then ".lib" + else ".a"; + library = + /**/ if final.isStatic then staticLibrary + else sharedLibrary; executable = /**/ if final.isWindows then ".exe" else ""; |