1 Star 0 Fork 13

liuxu/libwebsockets

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-add-secure-compile-option-in-Makefile.patch 784 Bytes
一键复制 编辑 原始数据 按行查看 历史
ger202 提交于 2023-07-20 08:43 . !58 update to 4.3.2
From 5bf5e974229174f03fdaf360b8ffee1a6517e7c6 Mon Sep 17 00:00:00 2001
From: songbuhuang <544824346@qq.com>
Date: Thu, 20 Jul 2023 10:46:28 +0800
Subject: [PATCH] add secure compile option in Makefile
Signed-off-by: songbuhuang <544824346@qq.com>
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 166d48a..49d0f5f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -458,6 +458,7 @@ if (NOT CMAKE_MODULE_PATH)
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")
+set(CMAKE_C_FLAGS "-Wl,-z,now -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -Wall -rdynamic ${CMAKE_C_FLAGS}")
if (CMAKE_TOOLCHAIN_FILE)
message(STATUS "CMAKE_TOOLCHAIN_FILE='${CMAKE_TOOLCHAIN_FILE}'")
--
2.25.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuxu180400617/libwebsockets.git
git@gitee.com:liuxu180400617/libwebsockets.git
liuxu180400617
libwebsockets
libwebsockets
master

搜索帮助