From 9a614c5e2c49f960ec0bbe23c31be2bc2cda3f8a Mon Sep 17 00:00:00 2001 From: wang--ge Date: Thu, 25 Aug 2022 11:44:18 +0800 Subject: [PATCH] add security compile option -fstack-protector-strong (cherry picked from commit 2665e80c8f2779e1e179cd112c3fd16ec1bf1858) --- motif.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/motif.spec b/motif.spec index ee6fb1b..b4d4046 100644 --- a/motif.spec +++ b/motif.spec @@ -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 - 2.3.8-2 +- add security compile option -fstack-protector-strong + * Wed Dec 29 2021 baizhonggui - 2.3.8-1 - update to 2.3.8 -- Gitee