mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
libuuid fix
This commit is contained in:
parent
1b2a09cb48
commit
74906b89a2
@ -384,9 +384,11 @@ abstract class LibraryBase
|
||||
}
|
||||
return true; // allow using system dependencies if pkg_config_path is explicitly defined
|
||||
}
|
||||
foreach (Config::getLib(static::NAME, 'static-libs', []) as $name) {
|
||||
if (!file_exists(BUILD_LIB_PATH . "/{$name}")) {
|
||||
return false;
|
||||
if (getenv('SPC_LINK_STATIC')) {
|
||||
foreach (Config::getLib(static::NAME, 'static-libs', []) as $name) {
|
||||
if (!file_exists(BUILD_LIB_PATH . "/{$name}")) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (Config::getLib(static::NAME, 'headers', []) as $name) {
|
||||
|
||||
@ -13,6 +13,7 @@ trait libuuid
|
||||
{
|
||||
UnixCMakeExecutor::create($this)->toStep(2)->build();
|
||||
copy($this->source_dir . '/build/libuuid.a', BUILD_LIB_PATH . '/libuuid.a');
|
||||
copy($this->source_dir . '/build/libuuid.so', BUILD_LIB_PATH . '/libuuid.so');
|
||||
FileSystem::createDir(BUILD_INCLUDE_PATH . '/uuid');
|
||||
copy($this->source_dir . '/uuid.h', BUILD_INCLUDE_PATH . '/uuid/uuid.h');
|
||||
$pc = FileSystem::readFile($this->source_dir . '/uuid.pc.in');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user