From eda366ea85ff0a5fa07ce9a7b28d8b8419518558 Mon Sep 17 00:00:00 2001 From: s Date: Mon, 30 Oct 2023 16:57:50 +0800 Subject: [PATCH] fix clang build error: openmp --- libimagequant.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libimagequant.spec b/libimagequant.spec index a3ced72..1183778 100644 --- a/libimagequant.spec +++ b/libimagequant.spec @@ -1,6 +1,6 @@ Name: libimagequant Version: 2.18.0 -Release: 1 +Release: 2 Summary: Palette quantization library License: GPLv3+ and MIT URL: https://github.com/ImageOptim/libimagequant @@ -24,7 +24,11 @@ and header files for the application. %autosetup -p1 %build +%if "%toolchain" == "clang" +%configure +%else %configure --with-openmp +%endif %make_build %install @@ -45,6 +49,9 @@ rm -f %{buildroot}%{_libdir}/%{name}.a %{_libdir}/pkgconfig/imagequant.pc %changelog +* Mon Oct 30 2023 yoo - 2.18.0-2 +- fix clang build error: openmp + * Wed Apr 12 2023 liyanan - 2.18.0-1 - Update to 2.18.0 -- Gitee