Merge pull request #224924 from amjoseph-nixpkgs/pr/antiword/cross

antiword: fix cross compilation

authored by Artturi and committed by GitHub 65bfe067 e66c61a1

+5 -1
+5 -1
pkgs/applications/office/antiword/default.nix
··· 11 12 prePatch = '' 13 sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h 14 - substituteInPlace Makefile --replace "gcc" "cc" 15 ''; 16 17 patches = [ ./10_fix_buffer_overflow_wordole_c_CVE-2014-8123.patch ]; 18 19 installTargets = [ "global_install" ]; 20
··· 11 12 prePatch = '' 13 sed -i -e "s|/usr/local/bin|$out/bin|g" -e "s|/usr/share|$out/share|g" Makefile antiword.h 14 + substituteInPlace Makefile --replace "gcc" '$(CC)' 15 ''; 16 17 patches = [ ./10_fix_buffer_overflow_wordole_c_CVE-2014-8123.patch ]; 18 + 19 + makeFlags = [ 20 + "CC=${stdenv.cc.targetPrefix}cc" 21 + ]; 22 23 installTargets = [ "global_install" ]; 24