File chromium-110-system-libffi.patch of Package chromium

Index: chromium-110.0.5481.30/build/config/linux/libffi/BUILD.gn
===================================================================
--- chromium-110.0.5481.30.orig/build/config/linux/libffi/BUILD.gn
+++ chromium-110.0.5481.30/build/config/linux/libffi/BUILD.gn
@@ -4,21 +4,6 @@
 
 import("//build/config/linux/pkg_config.gni")
 
-declare_args() {
-  # Controls whether the build should use the version of libffi library shipped
-  # with the system. By default, we only use the system version on Chrome OS:
-  # on Linux, libffi must be statically linked to prevent a situation where the
-  # runtime version of libffi is different from the build-time version from the
-  # sysroot.
-  use_system_libffi = default_toolchain == "//build/toolchain/cros:target"
-}
-
-if (use_system_libffi) {
   pkg_config("libffi") {
     packages = [ "libffi" ]
   }
-} else {
-  config("libffi") {
-    libs = [ ":libffi_pic.a" ]
-  }
-}
openSUSE Build Service is sponsored by