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 <chenzanyu@huawei.com>
This commit is contained in:
ChenZanYu 2023-05-13 03:11:48 +00:00 committed by Gitee
parent 475a2f484e
commit 2b7e9136e5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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.h>' '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 <chenzanyu@huawei.com> - 6.1-2
- Fixed A compilation error under LLVM because no compiler was specified in file strace.spec
* Fri Feb 3 2023 zhujin <zhujin18@huawei.com> - 6.1-1
- update to 6.1