From b3522f61c9164f607ecba7136e16c3fba7171750 Mon Sep 17 00:00:00 2001 From: ChenZanYu Date: Fri, 12 May 2023 06:20:53 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/strace.spec b/strace.spec index 9a4357d..0e50a88 100644 --- a/strace.spec +++ b/strace.spec @@ -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 -- Gitee