perlPackages.PerlIOLayers: 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-05 11:47:31 +08:00
parent 2c0e6a0e69
commit 496963f428

View file

@ -16642,6 +16642,7 @@ let
url = "mirror://cpan/authors/id/L/LE/LEONT/PerlIO-Layers-0.012.tar.gz";
sha256 = "1psaq3kwlk7g9rxvgsacfjk2mh6cscqf4xl7ggfkzfrnz91aabal";
};
perlPreHook = "export LD=$CC";
meta = {
description = "Querying your filehandle's capabilities";
license = with lib.licenses; [ artistic1 gpl1Plus ];