antiword: fix cross compilation
This commit is contained in:
parent
c2f2239d92
commit
d314be66d6
1 changed files with 5 additions and 1 deletions
|
@ -11,11 +11,15 @@ stdenv.mkDerivation rec{
|
|||
|
||||
prePatch = ''
|
||||
sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h
|
||||
substituteInPlace Makefile --replace "gcc" "cc"
|
||||
substituteInPlace Makefile --replace "gcc" '$(CC)'
|
||||
'';
|
||||
|
||||
patches = [ ./10_fix_buffer_overflow_wordole_c_CVE-2014-8123.patch ];
|
||||
|
||||
makeFlags = [
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
installTargets = [ "global_install" ];
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue