bring back openmp for musl, add TODO to add it back in on glibc

This commit is contained in:
DubbleClick
2025-03-30 22:07:56 +07:00
parent 16d82212dd
commit d21980170e
3 changed files with 15 additions and 10 deletions

View File

@@ -90,6 +90,10 @@ class SPCConfigUtil
}
}
}
// patch: imagick (imagemagick wrapper) for linux needs libgomp
if (in_array('imagemagick', $libraries) && PHP_OS_FAMILY === 'Linux' && getenv('SPC_LIBC') === 'musl') {
$short_name[] = '-lgomp';
}
return implode(' ', $short_name);
}