mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
postgresql: remove redundant static libraries
This commit is contained in:
parent
9a2b23427f
commit
5e074f10e1
@ -56,6 +56,14 @@ let
|
|||||||
|
|
||||||
# Prevent a retained dependency on gcc-wrapper.
|
# Prevent a retained dependency on gcc-wrapper.
|
||||||
substituteInPlace "$out/lib/pgxs/src/Makefile.global" --replace ${stdenv.cc}/bin/ld ld
|
substituteInPlace "$out/lib/pgxs/src/Makefile.global" --replace ${stdenv.cc}/bin/ld ld
|
||||||
|
|
||||||
|
# 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
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = lib.optionalString (!stdenv.isDarwin)
|
postFixup = lib.optionalString (!stdenv.isDarwin)
|
||||||
|
Loading…
Reference in New Issue
Block a user