support clang build

(cherry picked from commit ebf0e139853e7b48705249ab40710041547d717f)
This commit is contained in:
luofeng14 2024-03-19 14:20:03 +08:00 committed by openeuler-sync-bot
parent a8325b3e64
commit cb656e72c9
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,23 @@
From a123fd8afbfe9afac99211c1f7244e1b75788d14 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Tue, 19 Mar 2024 12:48:18 +0800
Subject: [PATCH] support clang build
---
Makefile.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.inc b/Makefile.inc
index 15049f3..0039821 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1,5 +1,5 @@
SHELL = /bin/sh
-CC = gcc
+CC ?= gcc
INSTALL = /usr/bin/install
--
2.19.1

View File

@ -1,7 +1,7 @@
Name: kpatch
Epoch: 1
Version: 0.9.9
Release: 2
Release: 3
Summary: A Linux dynamic kernel patching infrastructure
License: GPLv2
@ -51,6 +51,7 @@ Patch0035:0035-lookup-skip-finding-local-symbols-for-object-with-no.patch
Patch0036:0036-create-diff-object-ignore-entsize-change-of-.return_.patch
Patch0037:0037-add-initial-riscv64-support.patch
Patch0038:0038-Fix-undefined-behavior-problem-when-using-list_forea.patch
Patch0039:0039-build-support-for-building-with-clang.patch
BuildRequires: gcc elfutils-libelf-devel kernel-devel git
%ifarch ppc64le
@ -114,6 +115,12 @@ popd
%{_mandir}/man1/*.1.gz
%changelog
* Wed Mar 13 2024 luofng <luofeng13@huawei.com> - 1:0.9.9-3
- Type: enhencement
- CVE:NA
- SUG:NA
- DESC:support for building with clang
* Wed Mar 13 2024 peng.zou <peng.zou@shingroup.cn> - 1:0.9.9-2
- Type:enhancement
- ID:NA