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