postgresql: remove redundant static libraries

+8
+8
pkgs/servers/sql/postgresql/default.nix
··· 56 56 57 57 # Prevent a retained dependency on gcc-wrapper. 58 58 substituteInPlace "$out/lib/pgxs/src/Makefile.global" --replace ${stdenv.cc}/bin/ld ld 59 + 60 + # Remove static libraries in case dynamic are available. 61 + for i in $out/lib/*.a; do 62 + name="$(basename "$i")" 63 + if [ -e "$lib/lib/''${name%.a}.so" ] || [ -e "''${i%.a}.so" ]; then 64 + rm "$i" 65 + fi 66 + done 59 67 ''; 60 68 61 69 postFixup = lib.optionalString (!stdenv.isDarwin)