summary refs log tree commit diff
path: root/pkgs/development/libraries/mpfr
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-07-27 00:10:21 -0700
committerAdam Joseph <adam@westernsemico.com>2023-04-05 15:52:42 -0700
commitcee9981b32cddb028bb05738fdea93be13301271 (patch)
tree75da7a4a22e9c3457330b6630453a6215d9785d4 /pkgs/development/libraries/mpfr
parent5d64ebd9366a81dc00cd80209cedd05848cf3dcc (diff)
downloadnixpkgs-cee9981b32cddb028bb05738fdea93be13301271.tar
nixpkgs-cee9981b32cddb028bb05738fdea93be13301271.tar.gz
nixpkgs-cee9981b32cddb028bb05738fdea93be13301271.tar.bz2
nixpkgs-cee9981b32cddb028bb05738fdea93be13301271.tar.lz
nixpkgs-cee9981b32cddb028bb05738fdea93be13301271.tar.xz
nixpkgs-cee9981b32cddb028bb05738fdea93be13301271.tar.zst
nixpkgs-cee9981b32cddb028bb05738fdea93be13301271.zip
mpfr: add --disable-decimal-float
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/libraries/mpfr')
-rw-r--r--pkgs/development/libraries/mpfr/default.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/libraries/mpfr/default.nix b/pkgs/development/libraries/mpfr/default.nix
index e0a33e27c12..aba3a413a66 100644
--- a/pkgs/development/libraries/mpfr/default.nix
+++ b/pkgs/development/libraries/mpfr/default.nix
@@ -28,9 +28,13 @@ stdenv.mkDerivation rec {
   # mpfr.h requires gmp.h
   propagatedBuildInputs = [ gmp ];
 
-  configureFlags =
-    lib.optional stdenv.hostPlatform.isSunOS "--disable-thread-safe" ++
-    lib.optional stdenv.hostPlatform.is64bit "--with-pic";
+  configureFlags = lib.optional stdenv.hostPlatform.isSunOS "--disable-thread-safe"
+    ++ lib.optional stdenv.hostPlatform.is64bit "--with-pic"
+    ++ lib.optional stdenv.hostPlatform.isPower64 [
+      # Without this, the `tget_set_d128` test experiences a link
+      # error due to missing `__dpd_trunctdkf`.
+      "--disable-decimal-float"
+    ];
 
   doCheck = true; # not cross;