| |
@@ -177,12 +177,13 @@
|
| |
# 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.
|
| |
The goal should be to be forward-looking by default.
Signed-off-by: Igor Gnatenko ignatenkobrain@fedoraproject.org