mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-22 08:15:35 +08:00
Revert for test
This commit is contained in:
@@ -21,13 +21,7 @@ class imagick extends Extension
|
||||
$extra_libs = trim($extra_libs . ' -lgomp');
|
||||
}
|
||||
if (getenv('SPC_LIBC') === 'glibc') {
|
||||
$ld = f_exec('/usr/bin/gcc --print-file-name=libgomp.a', $output, $result_code);
|
||||
if ($result_code !== 0) {
|
||||
logger()->error('Cannot find libgomp.a, please install libgomp-dev');
|
||||
$extra_libs = trim($extra_libs . ' -l:libgomp.a');
|
||||
} else {
|
||||
$extra_libs = trim($extra_libs . ' ' . $ld);
|
||||
}
|
||||
$extra_libs = trim($extra_libs . ' -l:libgomp.a');
|
||||
}
|
||||
f_putenv('SPC_EXTRA_LIBS=' . $extra_libs);
|
||||
return true;
|
||||
|
||||
@@ -93,13 +93,7 @@ class SPCConfigUtil
|
||||
// patch: imagick (imagemagick wrapper) for linux needs -lgomp
|
||||
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux') {
|
||||
if (getenv('SPC_LIBC') === 'glibc') {
|
||||
$ld = f_exec('/usr/bin/gcc --print-file-name=libgomp.a', $output, $result_code);
|
||||
if ($result_code !== 0) {
|
||||
// logger()->error('Cannot find libgomp.a, please install libgomp-dev');
|
||||
$short_name[] = '-l:libgomp.a';
|
||||
} else {
|
||||
$short_name[] = $ld;
|
||||
}
|
||||
$short_name[] = '-l:libgomp.a -l:libgomp_nonshared.a';
|
||||
} else {
|
||||
$short_name[] = '-lgomp';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user