File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments