perlPackages.FileMap: add perlPreHook for $LD override

Fix a potential issue on where a compiler-only flag like
-mmacosx-version-min=10.12 is passed to plain ld instead.
This commit is contained in:
Zak B. Elep 2021-03-10 09:59:17 +08:00
parent 12074e7e86
commit a05d0d6378

View File

@ -8016,6 +8016,7 @@ let
url = "mirror://cpan/authors/id/L/LE/LEONT/File-Map-0.67.tar.gz";
sha256 = "1hpv4aprgypjxjx1kzbjnf6r29a98rw7mndlinixzk62vyz5sy0j";
};
perlPreHook = "export LD=$CC";
propagatedBuildInputs = [ PerlIOLayers SubExporterProgressive ];
buildInputs = [ TestFatal TestWarnings ];
meta = {