mpfr: add --disable-decimal-float

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Adam Joseph 2022-07-27 00:10:21 -07:00
parent 5d64ebd936
commit cee9981b32

View File

@ -28,9 +28,13 @@ stdenv.mkDerivation rec {
# mpfr.h requires gmp.h # mpfr.h requires gmp.h
propagatedBuildInputs = [ gmp ]; propagatedBuildInputs = [ gmp ];
configureFlags = configureFlags = lib.optional stdenv.hostPlatform.isSunOS "--disable-thread-safe"
lib.optional stdenv.hostPlatform.isSunOS "--disable-thread-safe" ++ ++ lib.optional stdenv.hostPlatform.is64bit "--with-pic"
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; doCheck = true; # not cross;