From 440ac01e5aa89ee9963d0bbde8165c8c293d1065 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 20 Aug 2018 04:07:27 -0400 Subject: [PATCH] postgresql: Fix cross compilation b1548ce080b6f40db12bc88beea603c61463f8b5 dropped the C compiler prefix --- pkgs/servers/sql/postgresql/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/sql/postgresql/default.nix b/pkgs/servers/sql/postgresql/default.nix index aeab9f8332f5..bccd54ca4ba8 100644 --- a/pkgs/servers/sql/postgresql/default.nix +++ b/pkgs/servers/sql/postgresql/default.nix @@ -25,7 +25,7 @@ let NIX_CFLAGS_COMPILE = [ "-I${libxml2.dev}/include/libxml2" ]; # Otherwise it retains a reference to compiler and fails; see #44767. TODO: better. - preConfigure = "CC=cc"; + preConfigure = "CC=${stdenv.cc.targetPrefix}cc"; configureFlags = [ "--with-openssl"