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