cbe2c5
diff -up firefox-84.0/security/sandbox/linux/moz.build.1516803 firefox-84.0/security/sandbox/linux/moz.build
cbe2c5
--- firefox-84.0/security/sandbox/linux/moz.build.1516803	2020-12-10 16:17:55.425139545 +0100
cbe2c5
+++ firefox-84.0/security/sandbox/linux/moz.build	2020-12-10 16:29:21.945860841 +0100
cbe2c5
@@ -114,9 +114,8 @@ if CONFIG["CC_TYPE"] in ("clang", "gcc")
cbe2c5
 # gcc lto likes to put the top level asm in syscall.cc in a different partition
cbe2c5
 # from the function using it which breaks the build.  Work around that by
cbe2c5
 # forcing there to be only one partition.
cbe2c5
-for f in CONFIG["OS_CXXFLAGS"]:
cbe2c5
-    if f.startswith("-flto") and CONFIG["CC_TYPE"] != "clang":
cbe2c5
-        LDFLAGS += ["--param lto-partitions=1"]
cbe2c5
+if CONFIG['CC_TYPE'] != 'clang':
cbe2c5
+    LDFLAGS += ['--param', 'lto-partitions=1']
cbe2c5
 
cbe2c5
 DEFINES["NS_NO_XPCOM"] = True
cbe2c5
 DisableStlWrapping()