postgresql: Respect dontDisableStatic
This commit is contained in:
parent
1276a3b12a
commit
0578f07b91
@ -58,6 +58,7 @@ 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
|
||||||
|
|
||||||
|
if [ -z "''${dontDisableStatic:-}" ]; then
|
||||||
# Remove static libraries in case dynamic are available.
|
# Remove static libraries in case dynamic are available.
|
||||||
for i in $out/lib/*.a; do
|
for i in $out/lib/*.a; do
|
||||||
name="$(basename "$i")"
|
name="$(basename "$i")"
|
||||||
@ -65,6 +66,7 @@ let
|
|||||||
rm "$i"
|
rm "$i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = lib.optionalString (!stdenv.isDarwin)
|
postFixup = lib.optionalString (!stdenv.isDarwin)
|
||||||
|
Loading…
Reference in New Issue
Block a user