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: