Skip to content

Commit 223dd10

Browse files
committed
fix spx shared libadd
1 parent 1c28f0f commit 223dd10

3 files changed

Lines changed: 8 additions & 20 deletions

File tree

src/SPC/builder/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public function getLibraryDependencies(bool $recursive = false): array
542542
*/
543543
protected function getSharedExtensionEnv(): array
544544
{
545-
$config = (new SPCConfigUtil($this->builder))->getExtensionConfig($this);
545+
$config = (new SPCConfigUtil($this->builder, ['no_php' => true]))->getExtensionConfig($this);
546546
[$staticLibs, $sharedLibs] = $this->splitLibsIntoStaticAndShared($config['libs']);
547547
$preStatic = PHP_OS_FAMILY === 'Darwin' ? '' : '-Wl,--start-group ';
548548
$postStatic = PHP_OS_FAMILY === 'Darwin' ? '' : ' -Wl,--end-group ';

src/SPC/builder/extension/excimer.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/SPC/builder/extension/spx.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,11 @@ public function patchBeforeBuildconf(): bool
4545
FileSystem::copy($this->source_dir . '/src/php_spx.h', $this->source_dir . '/php_spx.h');
4646
return true;
4747
}
48+
49+
public function getSharedExtensionEnv(): array
50+
{
51+
$env = parent::getSharedExtensionEnv();
52+
$env['SPX_SHARED_LIBADD'] = $env['LIBS'];
53+
return $env;
54+
}
4855
}

0 commit comments

Comments
 (0)