Blame SOURCES/0001-configure-Add-cross-prefix-for-widl-tool.patch

7d7405
From c0d0aa99062d0084c2c24ebd16fd59ce1819277b Mon Sep 17 00:00:00 2001
7d7405
From: Konstantin Kostiuk <kkostiuk@redhat.com>
7d7405
Date: Thu, 28 Apr 2022 16:37:38 +0000
7d7405
Subject: [PATCH 1/2] configure: Add cross prefix for widl tool
7d7405
7d7405
The mingw-w64-tool package in Fedora provides widl tool with a
7d7405
cross prefix, so adds it automatically for cross builds.
7d7405
7d7405
WIDL env can be used to redefine the path to tool.
7d7405
The same behavior as with windres.
7d7405
7d7405
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
7d7405
---
7d7405
 configure | 3 +++
7d7405
 1 file changed, 3 insertions(+)
7d7405
7d7405
diff --git a/configure b/configure
7d7405
index 59c43bea05..8b775492d0 100755
7d7405
--- a/configure
7d7405
+++ b/configure
7d7405
@@ -415,6 +415,7 @@ ranlib="${RANLIB-${cross_prefix}ranlib}"
7d7405
 nm="${NM-${cross_prefix}nm}"
7d7405
 smbd="$SMBD"
7d7405
 strip="${STRIP-${cross_prefix}strip}"
7d7405
+widl="${WIDL-${cross_prefix}widl}"
7d7405
 windres="${WINDRES-${cross_prefix}windres}"
7d7405
 pkg_config_exe="${PKG_CONFIG-${cross_prefix}pkg-config}"
7d7405
 query_pkg_config() {
7d7405
@@ -2786,6 +2787,7 @@ if test "$skip_meson" = no; then
7d7405
     echo "sdl2-config = [$(meson_quote $sdl2_config)]" >> $cross
7d7405
   fi
7d7405
   echo "strip = [$(meson_quote $strip)]" >> $cross
7d7405
+  echo "widl = [$(meson_quote $widl)]" >> $cross
7d7405
   echo "windres = [$(meson_quote $windres)]" >> $cross
7d7405
   if test "$cross_compile" = "yes"; then
7d7405
     cross_arg="--cross-file config-meson.cross"
7d7405
@@ -2907,6 +2909,7 @@ preserve_env PYTHON
7d7405
 preserve_env SDL2_CONFIG
7d7405
 preserve_env SMBD
7d7405
 preserve_env STRIP
7d7405
+preserve_env WIDL
7d7405
 preserve_env WINDRES
7d7405
7d7405
 printf "exec" >>config.status
7d7405
--
7d7405
2.25.1