We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 1276a3b commit 0578f07Copy full SHA for 0578f07
pkgs/servers/sql/postgresql/default.nix
@@ -58,13 +58,15 @@ let
58
# Prevent a retained dependency on gcc-wrapper.
59
substituteInPlace "$out/lib/pgxs/src/Makefile.global" --replace ${stdenv.cc}/bin/ld ld
60
61
- # Remove static libraries in case dynamic are available.
62
- for i in $out/lib/*.a; do
63
- name="$(basename "$i")"
64
- if [ -e "$lib/lib/''${name%.a}.so" ] || [ -e "''${i%.a}.so" ]; then
65
- rm "$i"
66
- fi
67
- done
+ if [ -z "''${dontDisableStatic:-}" ]; then
+ # Remove static libraries in case dynamic are available.
+ for i in $out/lib/*.a; do
+ name="$(basename "$i")"
+ if [ -e "$lib/lib/''${name%.a}.so" ] || [ -e "''${i%.a}.so" ]; then
+ rm "$i"
+ fi
68
+ done
69
70
'';
71
72
postFixup = lib.optionalString (!stdenv.isDarwin)
0 commit comments