!21 [手工sync] PR-20: riscv64: fortran编译选项增加-fPIC

From: @laokz 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2023-06-09 03:22:57 +00:00 committed by Gitee
commit d772ba0487
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: libtool
Version: 2.4.7
Release: 1
Release: 2
License: GPLv2+ and LGPLv2+ and GFDL-1.3-or-later
Summary: The GNU Portable Library Tool
URL: http://www.gnu.org/software/libtool/
@ -58,6 +58,10 @@ export FCFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules"| sed 's/-fs
export FFLAGS="$RPM_OPT_FLAGS -fPIE"
export FCFLAGS="$RPM_OPT_FLAGS -fPIE"
%endif
%ifarch riscv64
export FFLAGS="$RPM_OPT_FLAGS -fPIC"
export FCFLAGS="$RPM_OPT_FLAGS -fPIC"
%endif
%configure
@ -101,6 +105,9 @@ rm -f %{buildroot}%{_libdir}/libltdl.{a,la}
%changelog
* Tue Jun 06 2023 laokz <zhangkai@iscas.ac.cn> - 2.4.7-2
- add -fPIC to fortran flags for riscv
* Thu Nov 03 2022 renhongxun <renhongxun@h-partners.com> - 2.4.7-1
- upgrade version to 2.4.7