diffutils: Enable cross-compilation

This commit is contained in:
Ben Gamari 2017-12-09 14:48:13 -05:00 committed by John Ericson
parent 6f4cfe0570
commit 946c1b26fa

View file

@ -17,7 +17,8 @@ stdenv.mkDerivation rec {
configureFlags =
# "pr" need not be on the PATH as a run-time dep, so we need to tell
# configure where it is. Covers the cross and native case alike.
stdenv.lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr";
stdenv.lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr"
++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "gl_cv_func_getopt_gnu=yes";
meta = {
homepage = http://www.gnu.org/software/diffutils/diffutils.html;