Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Thaodan:mozilla
MozillaFirefox
0015-bmo-1516803-force-one-LTO-partition-for-sa...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0015-bmo-1516803-force-one-LTO-partition-for-sandbox-when.patch of Package MozillaFirefox
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann <whissi@gentoo.org> Date: Wed, 15 Apr 2020 00:27:25 +0200 Subject: [PATCH] bmo#1516803: force one LTO partition for sandbox when using GCC Signed-off-by: Thomas Deutschmann <whissi@gentoo.org> --- security/sandbox/linux/moz.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/security/sandbox/linux/moz.build b/security/sandbox/linux/moz.build index 50909b63e3525cbd978c5f97f9d2bdf1b776378f..09c7eecf32df3c7f2b8c2ceb811fc88cfde65494 100644 --- a/security/sandbox/linux/moz.build +++ b/security/sandbox/linux/moz.build @@ -112,9 +112,10 @@ 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" and CONFIG["MOZ_LTO_LDFLAGS"] is not None: + for f in CONFIG["MOZ_LTO_LDFLAGS"]: + if f.startswith("-flto"): + LDFLAGS += ["--param", "lto-partitions=1"] DEFINES["NS_NO_XPCOM"] = True DisableStlWrapping()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor