fix zlib detection in debian linux

This commit is contained in:
crazywhalecc 2023-10-19 23:09:31 +08:00 committed by Jerry Ma
parent 11af370fe1
commit c9b544f8c4
2 changed files with 18 additions and 1 deletions

View File

@ -498,7 +498,7 @@
},
"zlib": {
"type": "builtin",
"arg-type": "with",
"arg-type": "custom",
"arg-type-windows": "enable",
"lib-depends": [
"zlib"

View File

@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
namespace SPC\builder\extension;
use SPC\builder\Extension;
use SPC\util\CustomExt;
#[CustomExt('zlib')]
class zlib extends Extension
{
public function getUnixConfigureArg(): string
{
return '--with-zlib --with-zlib-dir="' . BUILD_ROOT_PATH . '"';
}
}