postgresql: Remove static libs using host platform extension

wip/yesman
Jack Kelly 6 years ago committed by Austin Seipp
parent 8e97e8009f
commit 5987c5c694
  1. 3
      pkgs/servers/sql/postgresql/default.nix

@ -67,7 +67,8 @@ let
# 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
ext="${stdenv.hostPlatform.extensions.sharedLibrary}"
if [ -e "$lib/lib/''${name%.a}$ext" ] || [ -e "''${i%.a}$ext" ]; then
rm "$i"
fi
done

Loading…
Cancel
Save