From f104101dd6a9a43d8a7bf8fbb66da9fce35a92b5 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Wed, 8 Sep 2021 18:09:15 +0800 Subject: [PATCH] add safe compilation options fstack-protector-strong --- bcache-tools.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bcache-tools.spec b/bcache-tools.spec index 10c763f..3b66d76 100644 --- a/bcache-tools.spec +++ b/bcache-tools.spec @@ -2,7 +2,7 @@ Name: bcache-tools Version: 1.1 -Release: 1 +Release: 2 Summary: userspace tools for bcache License: GPL-2.0 URL: http://bcache.evilpiepirate.org/ @@ -21,6 +21,8 @@ bcache-tools contains the userspace tools required for bcache. %autosetup -p1 %build +CFLAGS="$CFLAGS -fstack-protector-strong" +export CFLAGS %make_build all %install @@ -45,5 +47,8 @@ mkdir -p %{buildroot}/%{_mandir}/man8 %license COPYING %changelog +* Mon Sep 6 2021 caodongxia - 1.1-2 +- add safe compilation options fstack-protector-strong + * Wed Jan 6 2020 Zhiqiang Liu - 1.1-1 - init bcache-tools v1.1