diff --git a/OpenCSD.spec b/OpenCSD.spec index 5181519c01579e77bbe956961fb09081b7a5f049..92524bdc634b312b5816b532827d15a3dc6bea05 100644 --- a/OpenCSD.spec +++ b/OpenCSD.spec @@ -1,7 +1,7 @@ Summary : An open source CoreSight(tm) Trace Decode library Name : OpenCSD Version : 1.3.3 -Release : 4 +Release : 5 License : BSD Source : %{name}-%{version}.tar.gz BuildRoot : %{_tmppath}/%{name}-%{version}-${release}-root @@ -21,9 +21,12 @@ The library is implemented in C++ with an optional "C" API. %build +%if "%{?toolchain}" == "clang" + %global make_opts CC=clang CXX=clang++ +%endif export CFLAGS="$RPM_OPT_FLAGS -fPIE -pie" export CXXFLAGS="$RPM_OPT_FLAGS -fPIE -pie" -make -C decoder/build/linux %{?_smp_mflags} +make -C decoder/build/linux %{?_smp_mflags} %{?make_opts} %install @@ -44,6 +47,9 @@ rm -rf %{buildroot} %changelog +* Tue Jan 14 2025 Suyun - 1.3.3-5 +- Support for building with Clang + * Wed Apr 03 2024 guoqinglan - 1.3.3-4 - enable debug package - change permission from 644 to 755