forked from pool/MozillaFirefox
- add mozilla-fix-top-level-asm.patch to fix LTO build (w/o PGO)
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=775
This commit is contained in:
parent
0d5b4a33d0
commit
8de2295280
@ -6,6 +6,7 @@ Wed Sep 25 11:25:17 UTC 2019 - Wolfgang Rosenauer <wr@rosenauer.org>
|
|||||||
- Make build verbose (contributed by Martin Liška)
|
- Make build verbose (contributed by Martin Liška)
|
||||||
- remove obsolete kde.js setting (boo#1151186)
|
- remove obsolete kde.js setting (boo#1151186)
|
||||||
- update create-tar.sh to latest revision and adjusted tar_stamps
|
- update create-tar.sh to latest revision and adjusted tar_stamps
|
||||||
|
- add mozilla-fix-top-level-asm.patch to fix LTO build (w/o PGO)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 19 13:31:16 UTC 2019 - Wolfgang Rosenauer <wr@rosenauer.org>
|
Thu Sep 19 13:31:16 UTC 2019 - Wolfgang Rosenauer <wr@rosenauer.org>
|
||||||
|
@ -186,6 +186,7 @@ Patch20: mozilla-bmo1511604.patch
|
|||||||
Patch21: mozilla-bmo1554971.patch
|
Patch21: mozilla-bmo1554971.patch
|
||||||
Patch22: mozilla-nestegg-big-endian.patch
|
Patch22: mozilla-nestegg-big-endian.patch
|
||||||
Patch23: mozilla-bmo1512162.patch
|
Patch23: mozilla-bmo1512162.patch
|
||||||
|
Patch24; mozilla-fix-top-level-asm.patch
|
||||||
# Firefox/browser
|
# Firefox/browser
|
||||||
Patch101: firefox-kde.patch
|
Patch101: firefox-kde.patch
|
||||||
Patch102: firefox-branded-icons.patch
|
Patch102: firefox-branded-icons.patch
|
||||||
@ -321,6 +322,7 @@ cd $RPM_BUILD_DIR/%{source_prefix}
|
|||||||
%patch21 -p1
|
%patch21 -p1
|
||||||
%patch22 -p1
|
%patch22 -p1
|
||||||
%patch23 -p1
|
%patch23 -p1
|
||||||
|
%patch24 -p1
|
||||||
# Firefox
|
# Firefox
|
||||||
%patch101 -p1
|
%patch101 -p1
|
||||||
%patch102 -p1
|
%patch102 -p1
|
||||||
@ -453,9 +455,8 @@ ac_add_options --enable-optimize="-O1"
|
|||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
# LTO needs newer toolchain stack only (at least GCC 8.2.1 (r268506)
|
# LTO needs newer toolchain stack only (at least GCC 8.2.1 (r268506)
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%if 0%{?do_profiling}
|
|
||||||
ac_add_options --enable-lto
|
ac_add_options --enable-lto
|
||||||
# for some reason, building with LTO fails without PGO
|
%if 0%{?do_profiling}
|
||||||
ac_add_options MOZ_PGO=1
|
ac_add_options MOZ_PGO=1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
42
mozilla-fix-top-level-asm.patch
Normal file
42
mozilla-fix-top-level-asm.patch
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
From 91bb79836ee274855393bdf6ab10e24899b1b349 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Martin Liska <mliska@suse.cz>
|
||||||
|
Date: Fri, 17 May 2019 14:41:35 +0200
|
||||||
|
Subject: [PATCH] Fix top-level asm issue.
|
||||||
|
|
||||||
|
---
|
||||||
|
security/sandbox/linux/moz.build | 5 ++++-
|
||||||
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/security/sandbox/linux/moz.build b/security/sandbox/linux/moz.build
|
||||||
|
index aae85843e9f6..208368dfd189 100644
|
||||||
|
--- a/security/sandbox/linux/moz.build
|
||||||
|
+++ b/security/sandbox/linux/moz.build
|
||||||
|
@@ -61,7 +61,6 @@ UNIFIED_SOURCES += [
|
||||||
|
'../chromium/sandbox/linux/bpf_dsl/policy_compiler.cc',
|
||||||
|
'../chromium/sandbox/linux/bpf_dsl/syscall_set.cc',
|
||||||
|
'../chromium/sandbox/linux/seccomp-bpf/die.cc',
|
||||||
|
- '../chromium/sandbox/linux/seccomp-bpf/syscall.cc',
|
||||||
|
'broker/SandboxBrokerCommon.cpp',
|
||||||
|
'Sandbox.cpp',
|
||||||
|
'SandboxBrokerClient.cpp',
|
||||||
|
@@ -77,6 +76,7 @@ UNIFIED_SOURCES += [
|
||||||
|
SOURCES += [
|
||||||
|
'../chromium/base/strings/safe_sprintf.cc',
|
||||||
|
'../chromium/base/third_party/icu/icu_utf.cc',
|
||||||
|
+ '../chromium/sandbox/linux/seccomp-bpf/syscall.cc',
|
||||||
|
'../chromium/sandbox/linux/seccomp-bpf/trap.cc',
|
||||||
|
'../chromium/sandbox/linux/services/syscall_wrappers.cc',
|
||||||
|
]
|
||||||
|
@@ -96,6 +96,9 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
||||||
|
SOURCES['../chromium/sandbox/linux/services/syscall_wrappers.cc'].flags += [
|
||||||
|
'-Wno-empty-body',
|
||||||
|
]
|
||||||
|
+ SOURCES['../chromium/sandbox/linux/seccomp-bpf/syscall.cc'].flags += [
|
||||||
|
+ '-fno-lto'
|
||||||
|
+ ]
|
||||||
|
|
||||||
|
# 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
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user