Skip to content

Commit 83bdfcf

Browse files
committed
fix Compress-Raw-Zlib build with newer cosmocc, build using cosmo's zlib to avoid name clashes or including two versions of zlib
1 parent f6c1d08 commit 83bdfcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Perl/Dist/APPerl.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,10 @@ sub Build {
10761076
_install_perl_repo_files($itemconfig, $SiteConfig);
10771077
print "cd ".$SiteConfig->{perl_repo}."\n";
10781078
chdir($SiteConfig->{perl_repo}) or die "Failed to enter perl repo";
1079+
# build using cosmo's zlib to avoid name clashes or including two versions of zlib
1080+
local $ENV{'BUILD_ZLIB'} = 'False';
1081+
local $ENV{'ZLIB_INCLUDE'} = $SiteConfig->{cosmocc} . '/include/third_party/zlib';
1082+
local $ENV{'ZLIB_LIB'} = '';
10791083
_command_or_die('make');
10801084
$PERL_APE = "$SiteConfig->{perl_repo}/perl.com";
10811085
@perl_config_cmd = ('./perl', '-Ilib');

0 commit comments

Comments
 (0)