mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
mandoc: fix cc detection
This commit is contained in:
parent
a28dc898a5
commit
df4696cf2d
@ -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
|
||||
'';
|
||||
|
11
pkgs/tools/misc/mandoc/remove-broken-cc-check.patch
Normal file
11
pkgs/tools/misc/mandoc/remove-broken-cc-check.patch
Normal 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=
|
Loading…
Reference in New Issue
Block a user