1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

Merge pull request #135664 from zakame/contrib/perl-File-lchown-fix-build-on-Darwin

perlPackages.Filelchown: fix build on Darwin
This commit is contained in:
Stig 2021-08-25 15:24:49 +02:00 committed by GitHub
commit 6248814b68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8081,7 +8081,7 @@ let
sha256 = "a02fbf285406a8a4d9399284f032f2d55c56975154c2e1674bd109837b8096ec";
};
buildInputs = [ ExtUtilsCChecker ];
perlPreHook = lib.optionalString stdenv.isi686 "export LD=$CC"; # fix undefined reference to `__stack_chk_fail_local'
perlPreHook = lib.optionalString (stdenv.isi686 || stdenv.isDarwin) "export LD=$CC"; # fix undefined reference to `__stack_chk_fail_local'
meta = {
description = "Modify attributes of symlinks without dereferencing them";
license = with lib.licenses; [ artistic1 gpl1Plus ];