perl-Module-Build-XSUtil: fix darwin build

While building the tests LD gets called with -mmacosx-version-min=10.10
which is a CC flag, causing the build to fail with LD=ld.  This is
pretty common with perl packages.

/cc ZHF #45961
This commit is contained in:
Daiderd Jordan 2018-09-11 00:25:49 +02:00
parent 107448f19c
commit dc6b36b994
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -9650,11 +9650,12 @@ let
sha256 = "004ly9xxjlsbrr2vhxsa1n84z3034gxrzr7z0wl45szd8v1v6qwh";
};
buildInputs = [ CaptureTiny CwdGuard FileCopyRecursiveReduced ];
propagatedBuildInputs = [ DevelCheckCompiler ];
perlPreHook = "export LD=$CC";
meta = {
description = "A Module::Build class for building XS modules";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
};
propagatedBuildInputs = [ DevelCheckCompiler ];
};
ModuleCPANTSAnalyse = buildPerlPackage rec {