oncn-bwm/0006-fix-input-options-unused-warning.patch

26 lines
914 B
Diff
Raw Normal View History

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