!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-07 06:55:45 +00:00 committed by Gitee
commit 5363da0508
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3,7 +3,7 @@
Name: libtool Name: libtool
Version: 2.4.7 Version: 2.4.7
Release: 2 Release: 3
License: GPLv2+ and LGPLv2+ and GFDL-1.3-or-later License: GPLv2+ and LGPLv2+ and GFDL-1.3-or-later
Summary: The GNU Portable Library Tool Summary: The GNU Portable Library Tool
URL: http://www.gnu.org/software/libtool/ URL: http://www.gnu.org/software/libtool/
@ -59,6 +59,10 @@ export FCFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules"| sed 's/-fs
export FFLAGS="$RPM_OPT_FLAGS -fPIE" export FFLAGS="$RPM_OPT_FLAGS -fPIE"
export FCFLAGS="$RPM_OPT_FLAGS -fPIE" export FCFLAGS="$RPM_OPT_FLAGS -fPIE"
%endif %endif
%ifarch riscv64
export FFLAGS="$RPM_OPT_FLAGS -fPIC"
export FCFLAGS="$RPM_OPT_FLAGS -fPIC"
%endif
%configure %configure
@ -102,6 +106,9 @@ rm -f %{buildroot}%{_libdir}/libltdl.{a,la}
%changelog %changelog
* Tue Jun 06 2023 laokz <zhangkai@iscas.ac.cn> - 2.4.7-3
- add -fPIC to fortran flags for riscv
*Thu Feb 02 2023 renhongxun <renhongxun@h-partners.com> - 2.4.7-2 *Thu Feb 02 2023 renhongxun <renhongxun@h-partners.com> - 2.4.7-2
- backport: tests/link-order.at: avoid warning and test failure with GNU grep 3.8 - backport: tests/link-order.at: avoid warning and test failure with GNU grep 3.8