nix: remove pkgsCross workaround for libpq

This will make it much easier to actually cross-compile the static
executable to different systems.
This commit is contained in:
Wolfgang Walther
2024-11-12 21:13:31 +01:00
committed by Wolfgang Walther
parent 48aabeb473
commit 04a14d5941
2 changed files with 6 additions and 6 deletions
+4
View File
@@ -19,6 +19,10 @@ stdenv.mkDerivation {
pname = "libpq";
inherit (postgresql) src version patches;
__structuredAttrs = true;
env.CFLAGS = "-fdata-sections -ffunction-sections"
+ (if stdenv.cc.isClang then " -flto" else " -fmerge-constants -Wl,--gc-sections");
configureFlags = [
"--without-gssapi"
"--without-icu"