From a3fa9ae9b0640849f25295fb2e7de7a4dcdf462e Mon Sep 17 00:00:00 2001 From: ChebyshevTST Date: Thu, 23 Jan 2025 16:55:59 +0800 Subject: [PATCH] Fix building issues with clang --- tinycdb.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tinycdb.spec b/tinycdb.spec index b982713..d1304e9 100644 --- a/tinycdb.spec +++ b/tinycdb.spec @@ -5,7 +5,7 @@ to speed up searches in a sequence of (key,value) pairs with very big number of Name: tinycdb Version: 0.81 -Release: 1 +Release: 2 Summary: A very fast and simple package for creating and reading constant databases License: Public Domain URL: http://www.corpit.ru/mjt/tinycdb.html @@ -33,6 +33,9 @@ cp %{SOURCE1} . sed -i -e 's\/lib\/%{_lib}\g' libcdb.pc %build +%if "%toolchain" == "clang" + sed -i "s/cc/clang/g" Makefile +%endif %make_build staticlib sharedlib cdb-shared CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}" %install @@ -65,6 +68,9 @@ cp -p libcdb.pc %{buildroot}%{_libdir}/pkgconfig/libcdb.pc %{_mandir}/man3/*.3* %changelog +* Thu Jan 23 2025 QiuWenjian - 0.81-2 +- Fix building issues with clang + * Mon May 13 2024 yaoxin - 0.81-1 - Upgrade to 0.81 -- Gitee