23 lines
779 B
Diff
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
|
||
|
|
|