File chromium-110-system-libffi.patch of Package chromium-ffmpeg-extra (Revision b30401c0254353da4e772a68807e8dc6)

Currently displaying revision b30401c0254353da4e772a68807e8dc6 , Show latest

27
 
1
Index: chromium-110.0.5481.30/build/config/linux/libffi/BUILD.gn
2
===================================================================
3
--- chromium-110.0.5481.30.orig/build/config/linux/libffi/BUILD.gn
4
+++ chromium-110.0.5481.30/build/config/linux/libffi/BUILD.gn
5
@@ -4,21 +4,6 @@
6
 
7
 import("//build/config/linux/pkg_config.gni")
8
 
9
-declare_args() {
10
-  # Controls whether the build should use the version of libffi library shipped
11
-  # with the system. By default, we only use the system version on Chrome OS:
12
-  # on Linux, libffi must be statically linked to prevent a situation where the
13
-  # runtime version of libffi is different from the build-time version from the
14
-  # sysroot.
15
-  use_system_libffi = default_toolchain == "//build/toolchain/cros:target"
16
-}
17
-
18
-if (use_system_libffi) {
19
   pkg_config("libffi") {
20
     packages = [ "libffi" ]
21
   }
22
-} else {
23
-  config("libffi") {
24
-    libs = [ ":libffi_pic.a" ]
25
-  }
26
-}
27