diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-08-27 08:21:43 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-08-27 08:21:43 +0100 |
commit | df4696cf2d606e2e55158d975d1050bb820b0221 (patch) | |
tree | f223a2a0ddb5672163bb1804351be10daa099c7a /pkgs/tools/misc/mandoc | |
parent | a28dc898a5bb8a28aa5813009a8c43275d3cee0a (diff) |
mandoc: fix cc detection
Diffstat (limited to 'pkgs/tools/misc/mandoc')
-rw-r--r-- | pkgs/tools/misc/mandoc/default.nix | 5 | ||||
-rw-r--r-- | pkgs/tools/misc/mandoc/remove-broken-cc-check.patch | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/tools/misc/mandoc/default.nix b/pkgs/tools/misc/mandoc/default.nix index bf665a122d4fd..f485cb95f5d73 100644 --- a/pkgs/tools/misc/mandoc/default.nix +++ b/pkgs/tools/misc/mandoc/default.nix @@ -19,8 +19,13 @@ stdenv.mkDerivation rec { HAVE_MANPATH=1 LD_OHASH="-lutil" BUILD_DB=0 + CC=${stdenv.cc.targetPrefix}cc ''; + patches = [ + ./remove-broken-cc-check.patch + ]; + preConfigure = '' echo $configureLocal > configure.local ''; diff --git a/pkgs/tools/misc/mandoc/remove-broken-cc-check.patch b/pkgs/tools/misc/mandoc/remove-broken-cc-check.patch new file mode 100644 index 0000000000000..580226d165bb1 --- /dev/null +++ b/pkgs/tools/misc/mandoc/remove-broken-cc-check.patch @@ -0,0 +1,11 @@ +--- mandoc-1.14.4.org/configure 2018-08-08 15:51:51.000000000 +0100 ++++ mandoc-1.14.4/configure 2018-08-27 08:19:40.391912427 +0100 +@@ -40,7 +40,7 @@ + OSNAME= + UTF8_LOCALE= + +-CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -sf -` ++CC= + CFLAGS= + LDADD= + LDFLAGS= |