crash-trace-command/0005-support-clang-build.patch
luofeng14 1d1824a192 support clang build
(cherry picked from commit f861ff744a14f04bdb90f9b0ddeeac6bc97825c9)
2024-03-27 10:08:30 +08:00

23 lines
779 B
Diff

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