--- a/cmake/modules/FindUdfread.cmake	2024-09-10 23:21:34.944300987 +0200
+++ -	2024-09-10 23:24:16.204142312 +0200
@@ -43,12 +43,22 @@
 
       set(UDFREAD_VERSION ${${MODULE}_VER})
       set(BUILD_NAME udfread_build)
-
-      set(CONFIGURE_COMMAND autoreconf -vif &&
-                            ./configure
-                            --enable-static
-                            --disable-shared
-                            --prefix=${DEPENDS_PATH})
+      if(CMAKE_CROSSCOMPILING)
+        set(CONFIGURE_COMMAND autoreconf -vif &&
+                              ./configure
+                              --enable-static
+                              --disable-shared
+                              --prefix=${DEPENDS_PATH}
+                              --host=${XBPS_TRIPLET}
+                              --build=${XBPS_CROSS_TRIPLET}
+                              --target=${XBPS_CROSS_TRIPLET})
+      else()
+        set(CONFIGURE_COMMAND autoreconf -vif &&
+                              ./configure
+                              --enable-static
+                              --disable-shared
+                              --prefix=${DEPENDS_PATH})
+      endif()
       set(BUILD_IN_SOURCE 1)
 
       BUILD_DEP_TARGET()
