fix pkg-config build for macOS sonoma (#391)

* fix pkg-config build for macOS sonoma

* cs fix

* bump version to 2.1.6 [skip ci]
This commit is contained in:
Jerry Ma
2024-03-20 21:50:05 +08:00
committed by GitHub
parent 46984b6df1
commit 32f14e16c8
5 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ trait pkgconfig
{
protected function build(): void
{
$macos_env = "CFLAGS='{$this->builder->arch_c_flags} -Wimplicit-function-declaration' ";
$macos_env = "CFLAGS='{$this->builder->arch_c_flags} -Wimplicit-function-declaration -Wno-int-conversion' ";
$linux_env = 'LDFLAGS=--static ';
shell()->cd($this->source_dir)