From 28c453df23e83fd25c6a40722d84609ad6af6318 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 26 Apr 2019 16:39:27 -0700 Subject: [PATCH] Remove the ThinLTO workaround. --- rust.spec | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/rust.spec b/rust.spec index 6104185..b0e43ff 100644 --- a/rust.spec +++ b/rust.spec @@ -54,7 +54,7 @@ Name: rust Version: 1.34.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Rust Programming Language License: (ASL 2.0 or MIT) and (BSD and MIT) # ^ written as: (rust itself) and (bundled libraries) @@ -218,15 +218,6 @@ Requires: /usr/bin/cc # Use hardening ldflags. %global rustflags -Clink-arg=-Wl,-z,relro,-z,now -%ifarch %{ix86} -# i686 fails to link some static symbols with ThinLTO: -# https://bugzilla.redhat.com/show_bug.cgi?id=1701339 -# https://github.com/rust-lang/rust/issues/60184 -# and since this affects rustbook built with *stage0*, we can't just patch it. -# Workaround: using a single codegen unit bypasses ThinLTO. -%global rustflags %{rustflags} -Ccodegen-units=1 -%endif - %if %{without bundled_llvm} %if "%{llvm_root}" == "%{_prefix}" || 0%{?scl:1} %global llvm_has_filecheck 1 @@ -684,6 +675,9 @@ rm -f %{buildroot}%{rustlibdir}/etc/lldb_*.py* %changelog +* Fri Apr 26 2019 Josh Stone - 1.34.1-2 +- Remove the ThinLTO workaround. + * Thu Apr 25 2019 Josh Stone - 1.34.1-1 - Update to 1.34.1. - Add a ThinLTO fix for rhbz1701339.