File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/SPC/builder/extension Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function patchBeforeMake(): bool
1919 return false ;
2020 }
2121 // imagick with calls omp_pause_all, which requires openmp, on non-musl we build imagick without openmp
22- $ extra_libs = trim (getenv ('SPC_EXTRA_LIBS ' ) . ' -L/usr/lib64 - lomp ' );
22+ $ extra_libs = trim (getenv ('SPC_EXTRA_LIBS ' ) . ' -lomp ' );
2323 f_putenv ('SPC_EXTRA_LIBS= ' . $ extra_libs );
2424 return true ;
2525 }
@@ -38,6 +38,9 @@ protected function getStaticAndSharedLibs(): array
3838 $ static .= ' -lstdc++ ' ;
3939 $ shared = str_replace ('-lstdc++ ' , '' , $ shared );
4040 }
41+ if (str_contains (getenv ('CC ' ), 'zig ' )) {
42+ $ shared = str_replace ('-lomp ' , '/usr/lib64/libomp.so ' , $ shared );
43+ }
4144 return [$ static , $ shared ];
4245 }
4346}
You can’t perform that action at this time.
0 commit comments