Skip to content

Commit

Permalink
perl-Module-Build-XSUtil: fix darwin build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
LnL7 committed Sep 10, 2018
1 parent 107448f commit dc6b36b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/top-level/perl-packages.nix
Expand Up @@ -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 {
Expand Down

0 comments on commit dc6b36b

Please sign in to comment.