git.iko.soy/typeable/nixpkgs
on master help sign in
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)

commita8040c700ab2c08b2437d65dac7dbabc77f6b014 authorDmitry Bogatov <git#v1@kaction.cc> dateFri 25 Dec 2020, 00:00 (6 years ago) parentda61309
1 file changed+1
pkgs/tools/text/groff/default.nix+1
pkgs/tools/text/groff/default.nix+1
@@ -52,6 +52,7 @@ stdenv.mkDerivation rec {
5252 "--with-gs=${ghostscript}/bin/gs"
5353 ] ++ stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
5454 "ac_cv_path_PERL=${buildPackages.perl}/bin/perl"
55+ "gl_cv_func_signbit=yes"
5556 ];
5657
5758 makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [