From a05d0d6378553f2650c4f8e869ce5beaa9b88f3f Mon Sep 17 00:00:00 2001 From: "Zak B. Elep" Date: Wed, 10 Mar 2021 09:59:17 +0800 Subject: [PATCH] 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. --- pkgs/top-level/perl-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 2e42ce58bb52..767b1e13293e 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -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 = {