Build with -Wl,-z,relro,-z,now

Resolves: #2044834
This commit is contained in:
Marek Polacek 2022-01-26 13:45:18 -05:00
parent 9ea0214dd1
commit 43555ae0e7
1 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Summary: Compatibility Fortran runtime library version 4.8.5
Name: compat-libgfortran-48
%global gcc_version 4.8.5
Version: %{gcc_version}
Release: %{gcc_release}.4%{?dist}.1
Release: %{gcc_release}.5%{?dist}
# libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have
# GCC Runtime Exception.
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
@ -459,7 +459,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" \
--build=%{gcc_target_platform}
%endif
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" MAKEINFO=missing
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now MAKEINFO=missing
%install
rm -fr %{buildroot}
@ -506,6 +506,9 @@ rm -rf testlogs-%{_target_platform}-%{version}-%{release}
%{_libdir}/libgfortran.so.3*
%changelog
* Wed Jan 26 2022 Marek Polacek <polacek@redhat.com> - 4.8.5-36.5
- build with -Wl,-z,relro,-z,now (#2044834)
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.8.5-36.4.1
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688