make keep-section debuginfo part to be forward-looking

The goal should be to be forward-looking by default.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-09-06 12:20:53 +02:00
parent 6eec89a42b
commit 1dc63c3b9f
1 changed files with 5 additions and 4 deletions

View File

@ -177,12 +177,13 @@ Requires: /usr/bin/cc
# there's no stable ABI, we still need the unallocated metadata (.rustc) to
# support custom-derive plugins like #[proc_macro_derive(Foo)]. But eu-strip is
# very eager by default, so we have to limit it to -g, only debugging symbols.
%if 0%{?fedora} >= 27
# Newer find-debuginfo.sh supports --keep-section, which is preferable. rhbz1465997
%global _find_debuginfo_opts --keep-section .rustc
%else
%if (0%{?fedora} && 0%{?fedora} < 27) || (0%{?rhel} && 0%{?rhel} <= 7)
%global _find_debuginfo_opts -g
%undefine _include_minidebuginfo
%else
# Newer find-debuginfo.sh supports --keep-section, which is preferable.
# https://bugzilla.redhat.com/show_bug.cgi?id=1465997
%global _find_debuginfo_opts --keep-section .rustc
%endif
# Use hardening ldflags.