support clang build
(cherry picked from commit f861ff744a14f04bdb90f9b0ddeeac6bc97825c9)
This commit is contained in:
parent
cd454bb826
commit
1d1824a192
22
0005-support-clang-build.patch
Normal file
22
0005-support-clang-build.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
From 09f108146862b09a08ff5fc56f983c1f76cea684 Mon Sep 17 00:00:00 2001
|
||||||
|
From: luofeng <luofeng13@huawei.com>
|
||||||
|
Date: Tue, 26 Mar 2024 22:05:39 +0800
|
||||||
|
Subject: [PATCH] support clang build
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 0d35d4f..1829c0d 100755
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -36,4 +36,4 @@ INCDIR=/usr/include/crash
|
||||||
|
all: trace.so
|
||||||
|
|
||||||
|
trace.so: $(INCDIR)/defs.h trace.c
|
||||||
|
- gcc $(RPM_OPT_FLAGS) -Wall -I$(INCDIR) -nostartfiles -shared -rdynamic -Wl,-soname,trace.so -o trace.so trace.c -fPIC -D$(TARGET) $(TARGET_CFLAGS)
|
||||||
|
+ $(CC) $(RPM_OPT_FLAGS) -Wall -I$(INCDIR) -nostartfiles -shared -rdynamic -Wl,-soname,trace.so -o trace.so trace.c -fPIC -D$(TARGET) $(TARGET_CFLAGS)
|
||||||
|
--
|
||||||
|
2.19.1
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: crash-trace-command
|
Name: crash-trace-command
|
||||||
Version: 3.0
|
Version: 3.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: Crash utility's trace extension module
|
Summary: Crash utility's trace extension module
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Source: crash-trace-command-%{version}.tar.gz
|
Source: crash-trace-command-%{version}.tar.gz
|
||||||
@ -13,6 +13,7 @@ Patch0001: 0001-Makefile-set-DT_SONAME-to-trace.so.patch
|
|||||||
Patch0002: 0002-Makefile-fix-build-failure-on-aarch64-and-ppc64le.patch
|
Patch0002: 0002-Makefile-fix-build-failure-on-aarch64-and-ppc64le.patch
|
||||||
Patch0003: 0001-crash-trace-command-3.0-add-loongarch64-support.patch
|
Patch0003: 0001-crash-trace-command-3.0-add-loongarch64-support.patch
|
||||||
Patch0004: 0003-carsh-trace-command-3.0-add-riscv64-support.patch
|
Patch0004: 0003-carsh-trace-command-3.0-add-riscv64-support.patch
|
||||||
|
Patch0005: 0005-support-clang-build.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides a trace extension module for the crash utility,
|
This package provides a trace extension module for the crash utility,
|
||||||
@ -28,6 +29,7 @@ allowing it to read ftrace data from a core dump file.
|
|||||||
%ifarch riscv64
|
%ifarch riscv64
|
||||||
%patch0004 -p1
|
%patch0004 -p1
|
||||||
%endif
|
%endif
|
||||||
|
%patch0005 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
@ -42,6 +44,9 @@ cp %{_builddir}/crash-trace-%{version}/trace.so %{buildroot}%{_libdir}/crash/ext
|
|||||||
%doc COPYING
|
%doc COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 1 2024 luofeng <luofeng13@huawei.com> - 3.0-4
|
||||||
|
- support clang build
|
||||||
|
|
||||||
* Fri Jul 7 2023 EastDong <xudong23@iscas.ac.cn> - 3.0-3
|
* Fri Jul 7 2023 EastDong <xudong23@iscas.ac.cn> - 3.0-3
|
||||||
- add riscv64 support
|
- add riscv64 support
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user