mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
antiword: fix cross compilation
This commit is contained in:
parent
c2f2239d92
commit
d314be66d6
@ -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 New Issue
Block a user