!17 [sync] PR-13: 【轻量级 PR】:Add safe compilation options PIE/pie/PIC/FS
From: @openeuler-sync-bot Reviewed-by: @liuzhiqiang26 Signed-off-by: @liuzhiqiang26
This commit is contained in:
commit
7bef5cead1
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: bcache-tools
|
Name: bcache-tools
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: userspace tools for bcache
|
Summary: userspace tools for bcache
|
||||||
License: GPL-2.0
|
License: GPL-2.0
|
||||||
URL: http://bcache.evilpiepirate.org/
|
URL: http://bcache.evilpiepirate.org/
|
||||||
@ -21,7 +21,7 @@ bcache-tools contains the userspace tools required for bcache.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$CFLAGS -fstack-protector-strong"
|
CFLAGS="$CFLAGS -fstack-protector-strong -fPIE -pie -fPIC -D_FORTIFY_SOURCE=2"
|
||||||
export CFLAGS
|
export CFLAGS
|
||||||
%make_build all
|
%make_build all
|
||||||
|
|
||||||
@ -47,6 +47,9 @@ mkdir -p %{buildroot}/%{_mandir}/man8
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 7 2023 Weifeng Su <suweifeng1@huawei.com> - 1.1-3
|
||||||
|
- add safe compilation options PIE/pie/PIC/FS
|
||||||
|
|
||||||
* Mon Sep 6 2021 caodongxia <caodongxia@huawei.com> - 1.1-2
|
* Mon Sep 6 2021 caodongxia <caodongxia@huawei.com> - 1.1-2
|
||||||
- add safe compilation options fstack-protector-strong
|
- add safe compilation options fstack-protector-strong
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user