diff --git a/strace.spec b/strace.spec index f064368b882c13cc863d80d7733d200db3583f7c..0be9672aff6b4859fa36031dc15f2681fd0b6d57 100644 --- a/strace.spec +++ b/strace.spec @@ -1,7 +1,7 @@ Summary: Tracks and displays system calls associated with a running process Name: strace Version: 6.6 -Release: 1 +Release: 2 # The test suite is GPLv2+, all the rest is LGPLv2.1+. License: LGPL-2.1+ and GPL-2.0+ # Some distros require Group tag to be present, @@ -73,6 +73,9 @@ echo 'END OF BUILD ENVIRONMENT INFORMATION' export CC_FOR_BUILD="$CC"; CFLAGS_FOR_BUILD="$RPM_OPT_FLAGS"; export CFLAGS_FOR_BUILD +%if "%{?toolchain}" == "clang" + CFLAGS="${CFLAGS:-%{?build_cflags}} -Wno-error=deprecated-non-prototype -Wno-error=unused-function"; export CFLAGS; +%endif %configure --enable-mpers=check %make_build @@ -112,6 +115,9 @@ wait %{_mandir}/man1/* %changelog +* Thu Feb 22 2024 luofeng - 6.6-2 +- support clang build + * Fri Jan 19 2024 liuchao - 6.6-1 - update to 6.6 to fix compile error with kernel 6.6