summaryrefslogtreecommitdiff
path: root/dev-libs/leancrypto/files/leancrypto-1.6.0-no-force-lto.patch
blob: 8feead35e77678580febaf0551e9590481fdbba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/meson.build
+++ b/meson.build
@@ -81,21 +81,6 @@ if cc.has_argument('-mbranch-protection=standard')
 	add_global_arguments([ '-mbranch-protection=standard' ], language: 'c')
 endif
 
-# MINGW64 cannot handle lto properly at the moment
-if (cc.has_argument('-flto') and
-    host_machine.system() != 'windows' and
-    get_option('efi').disabled())
-	add_global_arguments([ '-flto=auto' ], language: 'c')
-	add_project_link_arguments('-flto=auto', language : 'c')
-endif
-
-if (cc.has_argument('-ffat-lto-objects') and
-    host_machine.system() != 'windows' and
-    host_machine.system() != 'darwin' and
-    get_option('efi').disabled())
-	add_global_arguments([ '-ffat-lto-objects' ], language: 'c')
-endif
-
 if get_option('optimization') == '0'
 	add_global_arguments([ '-DDEBUG' ], language: 'c')
 elif get_option('efi').disabled()