summaryrefslogtreecommitdiffstats
path: root/source/xap/mozilla-firefox/0027-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2021-03-24 04:29:15 +0000
committer Eric Hameleers <alien@slackware.com>2021-03-24 08:59:54 +0100
commit0f03f1b385050b37bf9e0adc1f93b6e45788b99b (patch)
tree315a9c1cd23e2cc22745f4d826c8ef0c97b83e08 /source/xap/mozilla-firefox/0027-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch
parent88111a3a1f332ee98ec6099f1a11b1f34b655b76 (diff)
downloadcurrent-0f03f1b385050b37bf9e0adc1f93b6e45788b99b.tar.gz
current-0f03f1b385050b37bf9e0adc1f93b6e45788b99b.tar.xz
Wed Mar 24 04:29:15 UTC 202120210324042915
ap/mpg123-1.26.5-x86_64-1.txz: Upgraded. d/cmake-3.20.0-x86_64-1.txz: Upgraded. kde/krita-4.4.3-x86_64-1.txz: Upgraded. l/mozjs78-78.9.0esr-x86_64-1.txz: Upgraded. n/libassuan-2.5.5-x86_64-1.txz: Upgraded. x/libva-2.11.0-x86_64-1.txz: Upgraded. x/libva-utils-2.11.0-x86_64-1.txz: Upgraded. xap/mozilla-firefox-87.0-x86_64-1.txz: Upgraded. This release contains security fixes and improvements. For more information, see: https://www.mozilla.org/en-US/firefox/87.0/releasenotes/ https://www.mozilla.org/en-US/security/advisories/mfsa2021-10/ https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23981 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23982 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23983 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23984 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23985 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23986 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23987 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23988 (* Security fix *)
Diffstat (limited to 'source/xap/mozilla-firefox/0027-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch')
-rw-r--r--source/xap/mozilla-firefox/0027-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/xap/mozilla-firefox/0027-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch b/source/xap/mozilla-firefox/0027-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch
new file mode 100644
index 000000000..387a65ad1
--- /dev/null
+++ b/source/xap/mozilla-firefox/0027-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch
@@ -0,0 +1,34 @@
+From 8ae6defd8340a13d88977d9973abd79495a99fcd Mon Sep 17 00:00:00 2001
+From: Thomas Deutschmann <whissi@gentoo.org>
+Date: Sat, 29 Aug 2020 22:30:59 +0200
+Subject: [PATCH 27/30] LTO: Only enable LTO for Rust when complete build uses
+ LTO
+
+Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
+---
+ config/makefiles/rust.mk | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk
+index 92f3070a85..0d72914c43 100644
+--- a/config/makefiles/rust.mk
++++ b/config/makefiles/rust.mk
+@@ -64,6 +64,7 @@ endif
+ # These flags are passed via `cargo rustc` and only apply to the final rustc
+ # invocation (i.e., only the top-level crate, not its dependencies).
+ cargo_rustc_flags = $(CARGO_RUSTCFLAGS)
++ifdef MOZ_LTO
+ ifndef DEVELOPER_OPTIONS
+ ifndef MOZ_DEBUG_RUST
+ # Enable link-time optimization for release builds, but not when linking
+@@ -77,6 +78,7 @@ RUSTFLAGS += -Cembed-bitcode=yes
+ endif
+ endif
+ endif
++endif
+
+ ifdef CARGO_INCREMENTAL
+ export CARGO_INCREMENTAL
+--
+2.31.0
+