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