From 799d05e0489f994593f8d2e25e533171863727cd Mon Sep 17 00:00:00 2001 From: swf504 Date: Tue, 7 Mar 2023 03:45:54 +0000 Subject: [PATCH] Add safe compilation options PIE/pie/PIC/FS Add safe compilation options PIE/pie/PIC/FS Signed-off-by: swf504 (cherry picked from commit baef578b501efe4382b2f5df93267dac26270107) --- bcache-tools.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bcache-tools.spec b/bcache-tools.spec index d3522be..5d74c38 100644 --- a/bcache-tools.spec +++ b/bcache-tools.spec @@ -2,7 +2,7 @@ Name: bcache-tools Version: 1.1 -Release: 2 +Release: 3 Summary: userspace tools for bcache License: GPL-2.0 URL: http://bcache.evilpiepirate.org/ @@ -21,7 +21,7 @@ bcache-tools contains the userspace tools required for bcache. %autosetup -p1 %build -CFLAGS="$CFLAGS -fstack-protector-strong" +CFLAGS="$CFLAGS -fstack-protector-strong -fPIE -pie -fPIC -D_FORTIFY_SOURCE=2" export CFLAGS %make_build all @@ -47,6 +47,9 @@ mkdir -p %{buildroot}/%{_mandir}/man8 %license COPYING %changelog +* Tue Mar 7 2023 Weifeng Su - 1.1-3 +- add safe compilation options PIE/pie/PIC/FS + * Mon Sep 6 2021 caodongxia - 1.1-2 - add safe compilation options fstack-protector-strong