antiword: fix cross compilation

This commit is contained in:
Adam Joseph 2023-04-05 18:53:39 -07:00
parent c2f2239d92
commit d314be66d6

View File

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