From 235a521808c52277c253e951d783c867e798f8e0 Mon Sep 17 00:00:00 2001 From: zzm_567 Date: Thu, 20 Aug 2020 14:34:02 +0800 Subject: [PATCH 1/2] bugfix testcase for gfortan --- libtool.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libtool.spec b/libtool.spec index 531506c..11d5986 100644 --- a/libtool.spec +++ b/libtool.spec @@ -3,7 +3,7 @@ Name: libtool Version: 2.4.6 -Release: 32 +Release: 33 License: GPLv2+ and LGPLv2+ and GFDL Summary: The GNU Portable Library Tool URL: http://www.gnu.org/software/libtool/ @@ -55,8 +55,8 @@ export CC=gcc export CXX=g++ export F77=gfortran export CFLAGS="$RPM_OPT_FLAGS -fPIC" -export FFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules"| sed 's/-fstack-protector-strong/ /g') -export FCFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules"| sed 's/-fstack-protector-strong/ /g') +export FFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules -fPIE"| sed 's/-fstack-protector-strong/ /g') +export FCFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules -fPIE"| sed 's/-fstack-protector-strong/ /g') %configure @@ -100,6 +100,9 @@ rm -f %{buildroot}%{_libdir}/libltdl.{a,la} %changelog +* Thu Aug 20 2020 tianwei - 2.4.6-33 +- fixbug testcase fail for gfortan + * Thu Mar 19 2020 openEuler Buildteam - 2.4.6-32 - add necessary BuildRequires -- Gitee From ee10b66a9dbdae214e1a322320aec09fc6dd889d Mon Sep 17 00:00:00 2001 From: zzm_567 Date: Thu, 20 Aug 2020 14:41:13 +0800 Subject: [PATCH 2/2] bugfix testcase for gfortan --- libtool.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libtool.spec b/libtool.spec index 11d5986..e8ceefa 100644 --- a/libtool.spec +++ b/libtool.spec @@ -55,8 +55,12 @@ export CC=gcc export CXX=g++ export F77=gfortran export CFLAGS="$RPM_OPT_FLAGS -fPIC" -export FFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules -fPIE"| sed 's/-fstack-protector-strong/ /g') -export FCFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules -fPIE"| sed 's/-fstack-protector-strong/ /g') +export FFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules"| sed 's/-fstack-protector-strong/ /g') +export FCFLAGS=$(echo "$RPM_OPT_FLAGS -I/usr/lib64/gfortran/modules"| sed 's/-fstack-protector-strong/ /g') +%ifarch x86_64 +export FFLAGS="$RPM_OPT_FLAGS -fPIE" +export FCFLAGS="$RPM_OPT_FLAGS -fPIE" +%endif %configure -- Gitee