From a8040c700ab2c08b2437d65dac7dbabc77f6b014 Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Fri, 25 Dec 2020 00:00:00 +0000 Subject: groff: fix static build Without manual override following problematic code in generated "configure" script (line 15918): case "$host_os" in # Guess yes on glibc systems. *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_signbit="guessing yes" ;; # If we don't know, assume the worst. *) gl_cv_func_signbit="guessing no" ;; esac results in declaration conflict with gnulib declaring int signbit(double) while system "math.h" providing modern declaration as constexpr bool signbit(double) --- pkgs/tools/text/groff/default.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/tools/text') diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix index 20052f6c4ce..73c8ed68342 100644 --- a/pkgs/tools/text/groff/default.nix +++ b/pkgs/tools/text/groff/default.nix @@ -52,6 +52,7 @@ stdenv.mkDerivation rec { "--with-gs=${ghostscript}/bin/gs" ] ++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "ac_cv_path_PERL=${buildPackages.perl}/bin/perl" + "gl_cv_func_signbit=yes" ]; makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ -- cgit 1.4.1