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