From 2b7e9136e5727c20c5ac93ae923a1b917678f6df Mon Sep 17 00:00:00 2001 From: ChenZanYu Date: Sat, 13 May 2023 03:11:48 +0000 Subject: [PATCH] The strac.spec file does not specify a compiler for compilation, resulting in failure to compile automatically using gcc under LLVM. You need to add the following statement: export CC_FOR_BUILD="$CC"; Signed-off-by: ChenZanYu --- strace.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/strace.spec b/strace.spec index 9a4357d..719a018 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.1 -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, @@ -71,6 +71,7 @@ kver="$(printf '%%s\n%%s\n' '#include ' 'LINUX_VERSION_CODE' | printf 'kernel-headers %%s.%%s.%%s\n' $(($kver/65536)) $(($kver/256%%256)) $(($kver%%256)) echo 'END OF BUILD ENVIRONMENT INFORMATION' +export CC_FOR_BUILD="$CC"; CFLAGS_FOR_BUILD="$RPM_OPT_FLAGS"; export CFLAGS_FOR_BUILD %configure --enable-mpers=check %make_build @@ -111,6 +112,9 @@ make check %{_mandir}/man1/* %changelog +* Sat May 13 2023 chenzanyu - 6.1-2 +- Fixed A compilation error under LLVM because no compiler was specified in file strace.spec + * Fri Feb 3 2023 zhujin - 6.1-1 - update to 6.1 -- Gitee