From a8ea864ff20f5a10bd309a602ae34e82ba826f73 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 2 Jan 2015 14:46:51 -0600 Subject: [PATCH] mpfr: add gmp to LDFLAGS --- pkgs/development/libraries/mpfr/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/mpfr/default.nix b/pkgs/development/libraries/mpfr/default.nix index d999ba0cda5..b8cabd01281 100644 --- a/pkgs/development/libraries/mpfr/default.nix +++ b/pkgs/development/libraries/mpfr/default.nix @@ -11,6 +11,7 @@ stdenv.mkDerivation rec { buildInputs = [ gmp ]; CFLAGS = "-I${gmp}/include"; + LDFLAGS = if stdenv.isDarwin then "-L${gmp}/lib" else null; configureFlags = /* Work around a FreeBSD bug that otherwise leads to segfaults in the test suite: