summaryrefslogtreecommitdiff
path: root/mozilla-1516803.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-08-10 07:39:16 +0000
committerCoprDistGit <infra@openeuler.org>2023-08-10 07:39:16 +0000
commit5e436004d7ec50bc29f392fded92224b4cb93e86 (patch)
treebc5fedac052339e4650f8c50a7665b1eabc044f0 /mozilla-1516803.patch
parent4b16a230f7f50826db46407f4ccfde8510e70642 (diff)
automatic import of firefoxopeneuler23.03
Diffstat (limited to 'mozilla-1516803.patch')
-rw-r--r--mozilla-1516803.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/mozilla-1516803.patch b/mozilla-1516803.patch
new file mode 100644
index 0000000..5053e51
--- /dev/null
+++ b/mozilla-1516803.patch
@@ -0,0 +1,15 @@
+diff -up firefox-84.0/security/sandbox/linux/moz.build.1516803 firefox-84.0/security/sandbox/linux/moz.build
+--- firefox-84.0/security/sandbox/linux/moz.build.1516803 2020-12-10 16:17:55.425139545 +0100
++++ firefox-84.0/security/sandbox/linux/moz.build 2020-12-10 16:29:21.945860841 +0100
+@@ -114,9 +114,8 @@ if CONFIG["CC_TYPE"] in ("clang", "gcc")
+ # gcc lto likes to put the top level asm in syscall.cc in a different partition
+ # from the function using it which breaks the build. Work around that by
+ # forcing there to be only one partition.
+-for f in CONFIG["OS_CXXFLAGS"]:
+- if f.startswith("-flto") and CONFIG["CC_TYPE"] != "clang":
+- LDFLAGS += ["--param lto-partitions=1"]
++if CONFIG['CC_TYPE'] != 'clang':
++ LDFLAGS += ['--param', 'lto-partitions=1']
+
+ DEFINES["NS_NO_XPCOM"] = True
+ DisableStlWrapping()