From cb5140a4e5039896a8c283c9fb691ebc25954ab3 Mon Sep 17 00:00:00 2001 From: Wenyu Liu Date: Fri, 16 Sep 2022 17:57:38 +0800 Subject: [PATCH] build: add the FS compiler options for gcc (cherry picked from commit 9dc7ad09e8c6b9da7aef0d36ca270c750c586d81) --- lapack.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lapack.spec b/lapack.spec index 223035b..fc39bac 100644 --- a/lapack.spec +++ b/lapack.spec @@ -4,7 +4,7 @@ Name: lapack Version: %{mediumver}.0 -Release: 4 +Release: 5 Summary: The LAPACK libraries for numerical linear algebra. License: BSD URL: http://www.netlib.org/lapack/ @@ -59,8 +59,8 @@ The %{name}-help package conatins man manual etc cp -f make.inc.example make.inc sed -i "s|librefblas.a|libblas.a|g" make.inc # Please take care the changes when upgrading the software package -sed -i '37iCFLAGS+= -fstack-protector-strong -fPIC' LAPACKE/utils/Makefile -sed -i '40iCFLAGS+= -fstack-protector-strong -fPIC' LAPACKE/src/Makefile +sed -i '37iCFLAGS+= -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2' LAPACKE/utils/Makefile +sed -i '40iCFLAGS+= -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2' LAPACKE/src/Makefile %build RPM_OPT_FLAGS="$RPM_OPT_FLAGS -frecursive" @@ -207,6 +207,9 @@ sed -i 's|@LAPACK_VERSION@|%{version}|g' %{buildroot}%{_libdir}/pkgconfig/lapack %endif %changelog +* Fri Sep 16 2022 Wenyu Liu - 3.10.0-5 +- Add the FS compiler options for gcc. + * Fri Mar 4 2022 yaoxin - 3.10.0-4 - Strip binary files. -- Gitee