File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 55namespace SPC \builder \extension ;
66
77use SPC \builder \Extension ;
8+ use SPC \builder \linux \SystemUtil ;
89use SPC \util \CustomExt ;
910
1011#[CustomExt('imagick ' )]
@@ -15,4 +16,14 @@ public function getUnixConfigureArg(bool $shared = false): string
1516 $ disable_omp = ' ac_cv_func_omp_pause_resource_all=no ' ;
1617 return '--with-imagick= ' . ($ shared ? 'shared, ' : '' ) . BUILD_ROOT_PATH . $ disable_omp ;
1718 }
19+
20+ protected function getStaticAndSharedLibs (): array
21+ {
22+ [$ static , $ shared ] = parent ::getStaticAndSharedLibs ();
23+ if (SystemUtil::getLibcVersionIfExists ('glibc ' ) && SystemUtil::getLibcVersionIfExists ('glibc ' ) <= '2.17 ' ) {
24+ $ static .= ' -lstdc++ ' ;
25+ $ shared = str_replace ('-lstdc++ ' , '' , $ shared );
26+ }
27+ return [$ static , $ shared ];
28+ }
1829}
Original file line number Diff line number Diff line change 2424 // 'macos-13', // bin/spc for x86_64
2525 // 'macos-14', // bin/spc for arm64
2626 'macos-15 ' , // bin/spc for arm64
27- 'ubuntu-latest ' , // bin/spc-alpine-docker for x86_64
27+ // 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
2828 'ubuntu-22.04 ' , // bin/spc-gnu-docker for x86_64
2929 'ubuntu-24.04 ' , // bin/spc for x86_64
3030 // 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
You can’t perform that action at this time.
0 commit comments