!3 add safe compilation options
Merge pull request !3 from compile_success/master
This commit is contained in:
commit
2c7765d56f
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: lapack
|
Name: lapack
|
||||||
Version: %{mediumver}.0
|
Version: %{mediumver}.0
|
||||||
Release: 13
|
Release: 14
|
||||||
Summary: The LAPACK libraries for numerical linear algebra.
|
Summary: The LAPACK libraries for numerical linear algebra.
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://www.netlib.org/lapack/
|
URL: http://www.netlib.org/lapack/
|
||||||
@ -58,6 +58,8 @@ The %{name}-help package conatins man manual etc
|
|||||||
|
|
||||||
cp -f make.inc.example make.inc
|
cp -f make.inc.example make.inc
|
||||||
sed -i "s|librefblas.a|libblas.a|g" make.inc
|
sed -i "s|librefblas.a|libblas.a|g" make.inc
|
||||||
|
sed -i '36iCFLAGS+= -fstack-protector-strong' LAPACKE/utils/Makefile
|
||||||
|
sed -i '40iCFLAGS+= -fstack-protector-strong' LAPACKE/src/Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -frecursive"
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -frecursive"
|
||||||
@ -81,7 +83,7 @@ lapack_make()
|
|||||||
cd shared
|
cd shared
|
||||||
ar x ../$2_pic.a
|
ar x ../$2_pic.a
|
||||||
cd ..
|
cd ..
|
||||||
gfortran -shared -Wl,-soname=$2.so.3 -o $2.so.%{version} shared/*.o
|
gfortran -shared -Wl,-z,now,-soname=$2.so.3 -o $2.so.%{version} shared/*.o
|
||||||
ln -s $2.so.%{version} $2.so
|
ln -s $2.so.%{version} $2.so
|
||||||
rm -rf shared
|
rm -rf shared
|
||||||
%make_build cleanlib
|
%make_build cleanlib
|
||||||
@ -205,6 +207,9 @@ sed -i 's|@LAPACK_VERSION@|%{version}|g' %{buildroot}%{_libdir}/pkgconfig/lapack
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 18 2020 zhujunhao <zhujunhao5@huawei.com> - 3.8.0-14
|
||||||
|
- Add safe compilation options
|
||||||
|
|
||||||
* Thu Feb 13 2020 likexin <likexin4@huawei.com> - 3.8.0-13
|
* Thu Feb 13 2020 likexin <likexin4@huawei.com> - 3.8.0-13
|
||||||
- Add liblapack_pic.a
|
- Add liblapack_pic.a
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user