mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
6b67d231a2
Most of mc uses of PERL is to embed path to the interpreter in VFS helpers. There we can use path to perl for --host. But `date-of-man-include.am` is the place where perl is used for --build. On most systems both paths are expected to be /usr/bin/perl. But on some systems paths might differ a bit. Most prominent example is NixOS, where packages get installed into unique prefixes: $ file /nix/store/...-perl-5.36.0/bin/perl \ /nix/store/...-perl-powerpc64-unknown-linux-gnu-5.36.0/bin/perl /nix/store/...-perl-5.36.0/bin/perl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), ... /nix/store/...-perl-powerpc64-unknown-linux-gnu-5.36.0/bin/perl: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, ... This allows running both binaries via qemu-user if needed for tests. The change introduces PERL_FOR_BUILD (similar to autoconf's CC_FOR_BUILD and friends) to allow passing both PERLs when needed. Signed-off-by: Andrew Borodin <aborodin@vmail.ru> |
||
---|---|---|
.. | ||
es | ||
hu | ||
it | ||
pl | ||
ru | ||
sr | ||
date-of-man-include.am | ||
Makefile.am | ||
mc.1.in | ||
mcedit.1.in | ||
mcview.1.in |