!44 [sync] PR-43: 【LLVM平行宇宙】Support building this package with clang
From: @openeuler-sync-bot Reviewed-by: @bitcoffee Signed-off-by: @bitcoffee
This commit is contained in:
commit
5da42ada1d
25
0006-fix-input-options-unused-warning.patch
Normal file
25
0006-fix-input-options-unused-warning.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From f54634902900764327a138e44c295b293b4f6650 Mon Sep 17 00:00:00 2001
|
||||||
|
From: 15859157387 <977713017@qq.com>
|
||||||
|
Date: Thu, 10 Aug 2023 14:34:00 +0800
|
||||||
|
Subject: [PATCH] cmake change
|
||||||
|
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 70b47e7..d6560c1 100755
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
cmake_minimum_required(VERSION 3.12.1)
|
||||||
|
project(bwmcli LANGUAGES C )
|
||||||
|
-set(CMAKE_C_FLAGS "-g -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Werror -ftrapv -O2 -Wl,-z,noexecstack \
|
||||||
|
- -Wl,-z,relro -fPIE -pie -Wl,-z,now")
|
||||||
|
+set(CMAKE_C_FLAGS "-g -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Werror -ftrapv -O2")
|
||||||
|
+set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-z,noexecstack -Wl,-z,relro -fPIE -pie -Wl,-z,now")
|
||||||
|
|
||||||
|
include_directories("${PROJECT_SOURCE_DIR}/")
|
||||||
|
include_directories("${PROJECT_SOURCE_DIR}/bpf")
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: oncn-bwm
|
Name: oncn-bwm
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Pod bandwidth management in mixed deployment scenarios of online and offline services
|
Summary: Pod bandwidth management in mixed deployment scenarios of online and offline services
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
URL: https://gitee.com/src-openeuler/oncn-bwm
|
URL: https://gitee.com/src-openeuler/oncn-bwm
|
||||||
@ -19,6 +19,7 @@ Patch9002: 0002-clean-code-and-use-securec-function.patch
|
|||||||
Patch9003: 0003-add-proc-file-interface.patch
|
Patch9003: 0003-add-proc-file-interface.patch
|
||||||
Patch9004: 0004-fix-offline-packets-block.patch
|
Patch9004: 0004-fix-offline-packets-block.patch
|
||||||
Patch9005: 0005-fix-some-review-issues.patch
|
Patch9005: 0005-fix-some-review-issues.patch
|
||||||
|
Patch9006: 0006-fix-input-options-unused-warning.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pod bandwidth management in mixed deployment scenarios of online and offline services
|
Pod bandwidth management in mixed deployment scenarios of online and offline services
|
||||||
@ -113,6 +114,9 @@ depmod -a
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 25 2023 cf-zhao <zhaochuanfeng@huawei.com> - 1.1-6
|
||||||
|
- fix input options unused warning to fix clang built error
|
||||||
|
|
||||||
* Wed Sep 13 2023 JofDiamonds <kwb0523@163.com> - 1.1-5
|
* Wed Sep 13 2023 JofDiamonds <kwb0523@163.com> - 1.1-5
|
||||||
- fix some review issues:
|
- fix some review issues:
|
||||||
1.fix segment fault triggered by unsupported command operations
|
1.fix segment fault triggered by unsupported command operations
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user