From 82c28add58915a95a04fc0fdd7d5be1601b9ffb7 Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Fri, 22 Mar 2024 09:19:57 +0800 Subject: [PATCH] support clang build --- ...uild-support-for-building-with-clang.patch | 23 +++++++++++++++++++ kpatch.spec | 9 +++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0039-build-support-for-building-with-clang.patch diff --git a/0039-build-support-for-building-with-clang.patch b/0039-build-support-for-building-with-clang.patch new file mode 100644 index 0000000..e949c93 --- /dev/null +++ b/0039-build-support-for-building-with-clang.patch @@ -0,0 +1,23 @@ +From a123fd8afbfe9afac99211c1f7244e1b75788d14 Mon Sep 17 00:00:00 2001 +From: 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 + diff --git a/kpatch.spec b/kpatch.spec index a87f076..57f7964 100644 --- a/kpatch.spec +++ b/kpatch.spec @@ -1,7 +1,7 @@ Name: kpatch Epoch: 1 Version: 0.9.9 -Release: 1 +Release: 2 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 Requires: bc make gcc patch bison flex openssl-devel @@ -111,6 +112,12 @@ popd %{_mandir}/man1/*.1.gz %changelog +* Wed Mar 13 2024 luofng - 1:0.9.9-3 +- Type: enhencement +- CVE:NA +- SUG:NA +- DESC:support for building with clang + * Fri Mar 1 2024 Bin Hu -1:0.9.9-1 - Type:enhancement - ID:NA -- Gitee