!116 [sync] PR-109: Support build with clang
From: @openeuler-sync-bot Reviewed-by: @hubin95 Signed-off-by: @hubin95
This commit is contained in:
commit
fbe43abb35
23
0039-build-support-for-building-with-clang.patch
Normal file
23
0039-build-support-for-building-with-clang.patch
Normal 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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user