!18 [sync] PR-13: 添加安全编译选项-fstack-protector-strong

From: @openeuler-sync-bot 
Reviewed-by: @starlet-dx 
Signed-off-by: @starlet-dx
This commit is contained in:
openeuler-ci-bot 2023-03-31 02:23:42 +00:00 committed by Gitee
commit bdd2b961f6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: motif
Version: 2.3.8
Release: 1
Release: 2
Summary: Run-time libraries and programs
License: LGPLv2+
URL: https://motif.ics.com/
@ -40,6 +40,7 @@ This package includes man files for %{name}.
%prep
%autosetup -p1
sed -i 's/-fno-strict-aliasing/-fstack-protector-strong -fno-strict-aliasing/g' configure.ac
%build
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
@ -81,6 +82,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%{_mandir}/man*/*
%changelog
* Thu Aug 25 2022 Ge Wang <wangge20@h-partners.com> - 2.3.8-2
- add security compile option -fstack-protector-strong
* Wed Dec 29 2021 baizhonggui <baizhonggui@huawei.com> - 2.3.8-1
- update to 2.3.8