From 4b076ed251584cc1808e2b9f65742455f2b8f38e Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Fri, 23 Feb 2024 01:55:27 +0000 Subject: [PATCH] support clang build Signed-off-by: luofeng14 --- strace.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/strace.spec b/strace.spec index f064368..0be9672 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 -- Gitee