Disable openmp for imagemagick

This commit is contained in:
crazywhalecc 2025-06-28 23:08:17 +08:00
parent 454b5a77ad
commit c23c5ae614
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -31,8 +31,7 @@ trait imagemagick
->optionalLib('freetype', ...ac_with_args('freetype')) ->optionalLib('freetype', ...ac_with_args('freetype'))
->optionalLib('bzip2', ...ac_with_args('bzlib')) ->optionalLib('bzip2', ...ac_with_args('bzlib'))
->addConfigureArgs( ->addConfigureArgs(
// TODO: glibc rh 10 toolset's libgomp.a was built without -fPIC so we can't use openmp without depending on libgomp.so '--disable-openmp',
SPCTarget::isTarget(SPCTarget::GLIBC) ? '--disable-openmp' : '--enable-openmp',
'--without-jxl', '--without-jxl',
'--without-x', '--without-x',
); );