Commit Graph

3 Commits

Author SHA1 Message Date
Sergei Trofimovich
347e5f473e mc: stop retaining configure arguments in the final binary
Reduces closure size of cross-compiled binary a bit by not retaining
build-time perl and friends.

Before:

    $ nix path-info -Sh $(nix-build -A pkgsCross.ppc64.mc) | unnix
    /<<NIX>>/mc-powerpc64-unknown-linux-gnu-4.8.28   273.7M

After:

    $ nix path-info -Sh $(nix-build -A pkgsCross.ppc64.mc) | unnix
    /<<NIX>>/mc-powerpc64-unknown-linux-gnu-4.8.28   198.6M
2022-08-18 11:52:49 +01:00
Sergei Trofimovich
69ce8a0949 mc, pkgsCross.ppc64.mc: fixx cross-build by adding PERL_FOR_BUILD
Without the change build system tries to execute perl for host (instead
of build) and fails as:

    install: cannot stat './mc.hlp.es': No such file or directory

The change pulls patch pending upstream inclusion where `PERL_FOR_BUILD`
is introduced to complement `PERL` for such cases.
2022-08-18 11:12:44 +01:00
AndersonTorres
13d788ff95 mc: move to applications/file-managers 2022-06-26 23:58:11 -03:00