mandoc: fix cc detection

This commit is contained in:
Jörg Thalheim 2018-08-27 08:21:43 +01:00
parent a28dc898a5
commit df4696cf2d
2 changed files with 16 additions and 0 deletions

View File

@ -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
'';

View File

@ -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=