summary refs log tree commit diff
path: root/pkgs/development/libraries/mpfr
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-01-02 14:46:51 -0600
committerShea Levy <shea@shealevy.com>2015-01-03 07:53:07 -0500
commita8ea864ff20f5a10bd309a602ae34e82ba826f73 (patch)
tree579994e46c06bd58997147c37386f14d7fec2b85 /pkgs/development/libraries/mpfr
parentbdf18c10445f19a0921f785f0c5ab89611b8e7ad (diff)
downloadnixpkgs-a8ea864ff20f5a10bd309a602ae34e82ba826f73.tar
nixpkgs-a8ea864ff20f5a10bd309a602ae34e82ba826f73.tar.gz
nixpkgs-a8ea864ff20f5a10bd309a602ae34e82ba826f73.tar.bz2
nixpkgs-a8ea864ff20f5a10bd309a602ae34e82ba826f73.tar.lz
nixpkgs-a8ea864ff20f5a10bd309a602ae34e82ba826f73.tar.xz
nixpkgs-a8ea864ff20f5a10bd309a602ae34e82ba826f73.tar.zst
nixpkgs-a8ea864ff20f5a10bd309a602ae34e82ba826f73.zip
mpfr: add gmp to LDFLAGS
Diffstat (limited to 'pkgs/development/libraries/mpfr')
-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 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: