Enable PIC mode for assembler files (RHEL-6298)

Backport from Fedora.

Resolves: RHEL-6298
This commit is contained in:
Florian Weimer 2023-09-26 08:53:27 +02:00
parent 7ff35836ed
commit 4e2cd49713
2 changed files with 7 additions and 1 deletions

View File

@ -1,2 +1,5 @@
*cc1_options:
+ %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}}
*cpp_options:
+ %{!r:%{!fpie:%{!fPIE:%{!fpic:%{!fPIC:%{!fno-pic:-fPIE}}}}}}

View File

@ -6,7 +6,7 @@
Summary: Red Hat specific rpm configuration files
Name: redhat-rpm-config
Version: 203
Version: 204
Release: 1%{?dist}
# No version specified.
License: GPL+
@ -254,6 +254,9 @@ install -p -m 644 -t %{buildroot}%{_rpmluadir}/fedora/srpm forge.lua
%doc buildflags.md
%changelog
* Tue Sep 26 2023 Florian Weimer <fweimer@redhat.com> - 204-1
- Enable PIC mode for assembler files (RHEL-6298)
* Wed Sep 13 2023 Florian Weimer <fweimer@redhat.com> - 203-1
- Rebuild against more recent downstream branch (#2234024)