jgrulich / rpms / firefox

Forked from rpms/firefox 4 years ago
Clone
8fe69a3
diff --git a/security/sandbox/linux/moz.build b/security/sandbox/linux/moz.build
8fe69a3
--- a/security/sandbox/linux/moz.build
8fe69a3
+++ b/security/sandbox/linux/moz.build
8fe69a3
@@ -99,9 +99,8 @@
8fe69a3
 # gcc lto likes to put the top level asm in syscall.cc in a different partition
8fe69a3
 # from the function using it which breaks the build.  Work around that by
8fe69a3
 # forcing there to be only one partition.
8fe69a3
-for f in CONFIG['OS_CXXFLAGS']:
8fe69a3
-    if f.startswith('-flto') and CONFIG['CC_TYPE'] != 'clang':
8fe69a3
-        LDFLAGS += ['--param lto-partitions=1']
8fe69a3
+if CONFIG['CC_TYPE'] != 'clang':
8fe69a3
+    LDFLAGS += ['--param', 'lto-partitions=1']
8fe69a3
 
8fe69a3
 DEFINES['NS_NO_XPCOM'] = True
8fe69a3
 DisableStlWrapping()
8fe69a3