about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/mpfr/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/libraries/mpfr/default.nix b/pkgs/development/libraries/mpfr/default.nix
index d999ba0cda5c8..b8cabd01281f1 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: