Fix macOS missing lib when linking

This commit is contained in:
crazywhalecc
2025-07-25 10:58:58 +08:00
committed by Jerry Ma
parent f500945298
commit f47c3a2d20
2 changed files with 3 additions and 0 deletions

View File

@@ -280,6 +280,7 @@ class MacOSBuilder extends UnixBuilderBase
$config = (new SPCConfigUtil($this, ['libs_only_deps' => true]))->config($this->ext_list, $this->lib_list, $this->getOption('with-suggested-exts'), $this->getOption('with-suggested-libs'));
return [
'EXTRA_CFLAGS' => getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS'),
'EXTRA_LDFLAGS_PROGRAM' => getenv('SPC_CMD_VAR_PHP_MAKE_EXTRA_LDFLAGS_PROGRAM'),
'EXTRA_LIBS' => $config['libs'],
];
}