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