Starting with OS X 10.11, DYLD_LIBRARY_PATH is no longer propagated.
'darwin' => [ ],
'linux' => [ ],
);
-push @$_, $ld_path for values %expected_vars;
+unless ($^O eq 'darwin') {
+ push @$_, $ld_path for values %expected_vars;
+}
my @all_vars = do {
my %uniq;
VERSIONER_PERL_VERSION
__CF_USER_TEXT_ENCODING
>;
+push @ignored_vars, $ld_path if $^O eq 'darwin';
for my $os (qw<MSWin32 android darwin cygwin linux>) {
1 while unlink $filename;
- local $^O = $os;
local %ENV;
-
@ENV{@all_vars} = @all_vars;
- run_perl $code;
+ {
+ local $^O = $os;
+ run_perl $code;
+ }
my %subprocess_env;