mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-24 17:35:34 +08:00
link libgomp statically on glibc
This commit is contained in:
@@ -92,7 +92,11 @@ class SPCConfigUtil
|
||||
}
|
||||
// patch: imagick (imagemagick wrapper) for linux needs -lgomp
|
||||
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux') {
|
||||
$short_name[] = '-lgomp';
|
||||
if (getenv('SPC_LIBC') === 'glibc') {
|
||||
$short_name[] = '-l:libgomp.a';
|
||||
} else {
|
||||
$short_name[] = '-lgomp';
|
||||
}
|
||||
}
|
||||
return implode(' ', $short_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user