1 Star 0 Fork 28

Regan.He/libaio

forked from src-openEuler/libaio 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0004-libaio-makefile-add-D_FORTIFY_SOURCE-flag.patch 815 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 02282eba33600bddaeaef844b07f0215580f1417 Mon Sep 17 00:00:00 2001
From: Wu Bo <[email protected]>
Date: Wed, 1 Dec 2021 11:35:59 +0800
Subject: [PATCH] libaio: makefile add D_FORTIFY_SOURCE flag
add D_FORTIFY_SOURCE flag to Makefile for security
Signed-off-by: Wu Bo <[email protected]>
Signed-off-by: volcanodragon <[email protected]>
---
src/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile b/src/Makefile
index f0ee30d..805c936 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,7 +2,7 @@ prefix=/usr
includedir=$(prefix)/include
libdir=$(prefix)/lib
-CFLAGS ?= -g -fomit-frame-pointer -O2
+CFLAGS ?= -g -fomit-frame-pointer -D_FORTIFY_SOURCE=2 -O2
CFLAGS += $(RPM_OPT_FLAGS) -Wall -I. -fPIC
SO_CFLAGS=-shared $(CFLAGS)
L_CFLAGS=$(CFLAGS)
--
1.8.3.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/reganhe_xx/libaio.git
[email protected]:reganhe_xx/libaio.git
reganhe_xx
libaio
libaio
master

搜索帮助