mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-22 08:15:35 +08:00
Try nonshared libgomp
This commit is contained in:
@@ -21,7 +21,7 @@ class imagick extends Extension
|
|||||||
$extra_libs = trim($extra_libs . ' -lgomp');
|
$extra_libs = trim($extra_libs . ' -lgomp');
|
||||||
}
|
}
|
||||||
if (getenv('SPC_LIBC') === 'glibc') {
|
if (getenv('SPC_LIBC') === 'glibc') {
|
||||||
$extra_libs = trim($extra_libs . ' -l:libgomp.a');
|
$extra_libs = trim($extra_libs . ' -l:libgomp.a -l:libgomp_nonshared.a');
|
||||||
}
|
}
|
||||||
f_putenv('SPC_EXTRA_LIBS=' . $extra_libs);
|
f_putenv('SPC_EXTRA_LIBS=' . $extra_libs);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class SPCConfigUtil
|
|||||||
// patch: imagick (imagemagick wrapper) for linux needs -lgomp
|
// patch: imagick (imagemagick wrapper) for linux needs -lgomp
|
||||||
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux') {
|
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux') {
|
||||||
if (getenv('SPC_LIBC') === 'glibc') {
|
if (getenv('SPC_LIBC') === 'glibc') {
|
||||||
$short_name[] = '-l:libgomp.a';
|
$short_name[] = '-l:libgomp.a -l:libgomp_nonshared.a';
|
||||||
} else {
|
} else {
|
||||||
$short_name[] = '-lgomp';
|
$short_name[] = '-lgomp';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user