File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
src/SPC/builder/unix/library Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 66
77use SPC \exception \FileSystemException ;
88use SPC \exception \RuntimeException ;
9+ use SPC \store \FileSystem ;
910use SPC \util \executor \UnixCMakeExecutor ;
1011
1112trait libde265
@@ -19,6 +20,11 @@ protected function build(): void
1920 UnixCMakeExecutor::create ($ this )
2021 ->addConfigureArgs ('-DENABLE_SDL=OFF ' )
2122 ->build ();
23+
24+ if (PHP_OS_FAMILY === 'Linux ' ) {
25+ $ libheifpc = realpath (BUILD_LIB_PATH . '/pkgconfig/libheif.pc ' );
26+ FileSystem::replaceFileStr ($ libheifpc , '-lc++ ' , '-lstdc++ ' );
27+ }
2228 $ this ->patchPkgconfPrefix (['libde265.pc ' ]);
2329 }
2430}
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ protected function build(): void
4040 '-DENABLE_PLUGIN_LOADING=OFF ' ,
4141 )
4242 ->build ();
43+ if (PHP_OS_FAMILY === 'Linux ' ) {
44+ $ libheifpc = realpath (BUILD_LIB_PATH . '/pkgconfig/libheif.pc ' );
45+ FileSystem::replaceFileStr ($ libheifpc , '-lc++ ' , '-lstdc++ ' );
46+ }
4347 $ this ->patchPkgconfPrefix (['libheif.pc ' ]);
4448 }
4549}
You can’t perform that action at this time.
0 commit comments