summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorDmitry Bogatov <git#v1@kaction.cc>2020-12-25 00:00:00 +0000
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2021-01-02 08:44:20 +0100
commita8040c700ab2c08b2437d65dac7dbabc77f6b014 (patch)
tree741b9f3d12fa56b881e12243a91062a7edd0a041 /pkgs/tools/text
parentda613094f76df071b255d456eb6a124edeba2ce9 (diff)
downloadnixpkgs-a8040c700ab2c08b2437d65dac7dbabc77f6b014.tar
nixpkgs-a8040c700ab2c08b2437d65dac7dbabc77f6b014.tar.gz
nixpkgs-a8040c700ab2c08b2437d65dac7dbabc77f6b014.tar.bz2
nixpkgs-a8040c700ab2c08b2437d65dac7dbabc77f6b014.tar.lz
nixpkgs-a8040c700ab2c08b2437d65dac7dbabc77f6b014.tar.xz
nixpkgs-a8040c700ab2c08b2437d65dac7dbabc77f6b014.tar.zst
nixpkgs-a8040c700ab2c08b2437d65dac7dbabc77f6b014.zip
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)
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/groff/default.nix1
1 files changed, 1 insertions, 0 deletions
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) [