summarylogtreecommitdiffstats
path: root/010-onevpl-cpu-fix-build.patch
blob: 39a05c1fe589725f766ec5a5ee8382c6249113fd (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
25
26
27
28
--- a/script/bootstrap.py
+++ b/script/bootstrap.py
@@ -546,7 +546,8 @@ def build_dav1d_decoder(install_dir):
         cmd('meson', 'build', '--prefix', os.path.join(install_dir,
                                                        ''), '--libdir',
             os.path.join(install_dir, 'lib'), '--buildtype', 'release',
-            '--default-library=static', '-Denable_avx512=false')
+            '--default-library=static', '-Denable_avx512=false',
+            '-Dc_args=${CFLAGS} -fno-lto', '-Dcpp_args=${CXXFLAGS} -fno-lto')
         cmd('ninja', '-C', 'build')
         with pushd('build'):
             cmd('ninja', 'install')
@@ -662,6 +663,7 @@ def build_gpl_x264_encoder(install_dir):
             f'--prefix={posix_install_dir}',
             '--enable-static',
             '--enable-pic',
+            '--disable-lavf',
             shell='bash')
         cmd('make', '-j', CPU_COUNT)
         cmd('make', 'install')
@@ -785,6 +787,7 @@ def ffmpeg_configure_opts(install_dir, a
         '--enable-filter=select',
         '--enable-filter=concat',
         '--enable-filter=ssim',
+        '--extra-cflags=-fno-lto',
     ]
     if os.name == 'nt':
         result.extend([