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 885085a..7604ee0 100644 --- a/kpatch.spec +++ b/kpatch.spec @@ -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 - 1:0.9.9-3 +- Type: enhencement +- CVE:NA +- SUG:NA +- DESC:support for building with clang + * Wed Mar 13 2024 peng.zou - 1:0.9.9-2 - Type:enhancement - ID:NA